Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00195/0.00195, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002429/0.002429, allocations: 212.6 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.473/1.473, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002134/0.002134, allocations: 47.92 kB / 377.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2722, allocations: 53.36 MB / 431.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02935/0.3016, allocations: 26.82 MB / 458 MB, free: 11.94 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03358/0.3352, allocations: 22.45 MB / 480.4 MB, free: 5.402 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00647/0.3416, allocations: 269.1 kB / 480.7 MB, free: 5.137 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005768/0.3474, allocations: 1.788 MB / 482.5 MB, free: 3.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01265/0.3601, allocations: 3.318 MB / 485.8 MB, free: 15.99 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005918/0.366, allocations: 1.652 MB / 487.4 MB, free: 14.34 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02253/0.3885, allocations: 12.9 MB / 0.4886 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001617/0.3901, allocations: 0.5121 MB / 0.4891 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004051/0.3942, allocations: 2.186 MB / 0.4912 GB, free: 14.66 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003947/0.3981, allocations: 2.1 MB / 0.4933 GB, free: 12.54 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005748/0.3987, allocations: 136 kB / 0.4934 GB, free: 12.41 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00563/0.4043, allocations: 1.545 MB / 0.4949 GB, free: 10.87 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009527/0.4053, allocations: 0.5932 MB / 0.4955 GB, free: 10.27 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004127/0.4094, allocations: 2.624 MB / 0.4981 GB, free: 7.629 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01147/0.4209, allocations: 6.671 MB / 0.5046 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.014e-06/0.4209, allocations: 0 / 0.5046 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4209, allocations: 0 / 0.5046 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002245/0.4211, allocations: 0 / 0.5046 GB, free: 0.9258 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01204/0.4331, allocations: 6.855 MB / 0.5113 GB, free: 9.984 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.4332, allocations: 8.031 kB / 0.5113 GB, free: 9.977 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002554/0.4334, allocations: 161.2 kB / 0.5114 GB, free: 9.809 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001126/0.4346, allocations: 0.7802 MB / 0.5122 GB, free: 9.023 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008317/0.4429, allocations: 4.367 MB / 0.5165 GB, free: 4.535 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.959e-05/0.443, allocations: 70 kB / 0.5165 GB, free: 4.465 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002753/0.4432, allocations: 107.8 kB / 0.5166 GB, free: 4.359 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002502/0.4457, allocations: 1.309 MB / 0.5179 GB, free: 3.035 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/0.4458, allocations: 0 / 0.5179 GB, free: 3.035 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001212/0.4459, allocations: 39.98 kB / 0.518 GB, free: 2.996 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.351e-05/0.4459, allocations: 35.98 kB / 0.518 GB, free: 2.961 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002851/0.4488, allocations: 1.492 MB / 0.5194 GB, free: 1.465 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01175/0.4605, allocations: 5.554 MB / 0.5249 GB, free: 11.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001912/0.4624, allocations: 0.8796 MB / 0.5257 GB, free: 10.95 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001753/0.4642, allocations: 1.07 MB / 0.5268 GB, free: 9.883 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2717/0.7359, allocations: 27.16 MB / 0.5533 GB, free: 95.59 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008349/0.7367, allocations: 0.5558 MB / 0.5538 GB, free: 95.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.106e-06/0.7367, allocations: 0 / 0.5538 GB, free: 95.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003001/0.7397, allocations: 1.913 MB / 0.5557 GB, free: 93.83 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.7398, allocations: 62.16 kB / 0.5558 GB, free: 93.76 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005573/0.7454, allocations: 5.593 MB / 0.5612 GB, free: 88.21 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001477/0.7455, allocations: 41.7 kB / 0.5613 GB, free: 88.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001698/0.7472, allocations: 2.968 MB / 0.5642 GB, free: 85.27 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002985/0.7475, allocations: 315.7 kB / 0.5645 GB, free: 84.99 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004301/0.7479, allocations: 419 kB / 0.5649 GB, free: 84.58 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.694e-05/0.748, allocations: 305.1 kB / 0.5652 GB, free: 84.28 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007244/0.7487, allocations: 402.1 kB / 0.5655 GB, free: 83.89 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009034/0.7496, allocations: 1.094 MB / 0.5666 GB, free: 82.49 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001622/0.7512, allocations: 1.613 MB / 0.5682 GB, free: 80.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.926e-06/0.7512, allocations: 4 kB / 0.5682 GB, free: 80.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003234/0.7545, allocations: 2.245 MB / 0.5704 GB, free: 78.36 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.823e-05/0.7545, allocations: 16 kB / 0.5704 GB, free: 78.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001714/0.7547, allocations: 159.6 kB / 0.5705 GB, free: 78.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.897e-05/0.7547, allocations: 36 kB / 0.5706 GB, free: 78.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.7557, allocations: 355.4 kB / 0.5709 GB, free: 77.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.013e-05/0.7558, allocations: 51.78 kB / 0.571 GB, free: 77.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001861/0.7576, allocations: 192.7 kB / 0.5712 GB, free: 77.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001617/0.7578, allocations: 128 kB / 0.5713 GB, free: 77.48 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001192/0.759, allocations: 0.7139 MB / 0.572 GB, free: 76.78 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006318/0.7596, allocations: 0.7492 MB / 0.5727 GB, free: 76.03 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00374/0.7634, allocations: 2.149 MB / 0.5748 GB, free: 73.92 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.318e-06/0.7634, allocations: 8 kB / 0.5748 GB, free: 73.91 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.7634, allocations: 0 / 0.5748 GB, free: 73.91 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.7634, allocations: 7.984 kB / 0.5748 GB, free: 73.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00501/0.7684, allocations: 3.586 MB / 0.5783 GB, free: 70.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00016/0.7685, allocations: 140 kB / 0.5785 GB, free: 70.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007243/0.7693, allocations: 151.8 kB / 0.5786 GB, free: 69.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.849e-06/0.7693, allocations: 8.062 kB / 0.5786 GB, free: 69.97 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.008e-05/0.7694, allocations: 59.98 kB / 0.5787 GB, free: 69.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.7694, allocations: 4 kB / 0.5787 GB, free: 69.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.7694, allocations: 0 / 0.5787 GB, free: 69.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003031/0.7724, allocations: 2.197 MB / 0.5808 GB, free: 67.68 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001834/0.7742, allocations: 0.7705 MB / 0.5816 GB, free: 66.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007452/0.775, allocations: 19.98 kB / 0.5816 GB, free: 66.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/0.7761, allocations: 35.97 kB / 0.5816 GB, free: 66.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002098/0.7763, allocations: 100.5 kB / 0.5817 GB, free: 66.76 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/0.7765, allocations: 68.88 kB / 0.5818 GB, free: 66.69 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005126/0.7816, allocations: 3.604 MB / 0.5853 GB, free: 63.12 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.7816, allocations: 0 / 0.5853 GB, free: 63.12 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002665/0.7843, allocations: 1.092 MB / 0.5864 GB, free: 62.09 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004695/0.7889, allocations: 3.842 MB / 0.5901 GB, free: 58.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002084/0.791, allocations: 1.366 MB / 0.5915 GB, free: 56.88 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.791, allocations: 192 / 0.5915 GB, free: 56.88 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008972/0.7919, allocations: 0.7397 MB / 0.5922 GB, free: 56.09 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005759/0.7977, allocations: 1.179 MB / 0.5933 GB, free: 54.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.038/0.8357, allocations: 30.55 MB / 0.6232 GB, free: 23.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001302/0.837, allocations: 2.592 MB / 0.6257 GB, free: 20.95 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00182/0.8388, allocations: 0.6885 MB / 0.6264 GB, free: 20.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001782/0.8406, allocations: 2.389 MB / 0.6287 GB, free: 17.87 MB / 446.1 MB Notification: Performance of SimCode: time 1.543e-06/0.8406, allocations: 0 / 0.6287 GB, free: 17.87 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2067/1.047, allocations: 112.5 MB / 0.7386 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.17/30.21, allocations: 11.78 kB / 0.7386 GB, free: 1.961 MB / 0.5294 GB " [Timeout remaining time 630] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 34.48130270699039]