Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 47.92 kB / 371.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2435, allocations: 52.18 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02496/0.2685, allocations: 26.82 MB / 450.2 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03173/0.3002, allocations: 22.41 MB / 472.6 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005632/0.3059, allocations: 269.1 kB / 472.9 MB, free: 12.92 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005697/0.3115, allocations: 1.78 MB / 474.7 MB, free: 11.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01163/0.3232, allocations: 3.322 MB / 478 MB, free: 7.781 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005371/0.3285, allocations: 1.648 MB / 479.7 MB, free: 6.129 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02031/0.3489, allocations: 12.75 MB / 492.4 MB, free: 9.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001483/0.3503, allocations: 0.516 MB / 492.9 MB, free: 8.789 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004194/0.3545, allocations: 2.182 MB / 495.1 MB, free: 6.598 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003628/0.3582, allocations: 2.103 MB / 497.2 MB, free: 4.48 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004921/0.3587, allocations: 136 kB / 497.3 MB, free: 4.348 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005142/0.3638, allocations: 1.537 MB / 498.9 MB, free: 2.809 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006175/0.3644, allocations: 0.5972 MB / 499.5 MB, free: 2.207 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003092/0.3675, allocations: 2.62 MB / 0.4903 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008607/0.3761, allocations: 6.667 MB / 0.4968 GB, free: 8.871 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3761, allocations: 0 / 0.4968 GB, free: 8.871 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3761, allocations: 0 / 0.4968 GB, free: 8.871 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001333/0.3763, allocations: 0 / 0.4968 GB, free: 8.871 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.01006/0.3863, allocations: 6.859 MB / 0.5035 GB, free: 1.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.3864, allocations: 12.03 kB / 0.5035 GB, free: 1.918 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.333e-05/0.3864, allocations: 26 kB / 0.5036 GB, free: 1.895 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002053/0.3866, allocations: 157.2 kB / 0.5037 GB, free: 1.73 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009282/0.3875, allocations: 0.7764 MB / 0.5045 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008142/0.3957, allocations: 4.383 MB / 0.5088 GB, free: 12.44 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.276e-05/0.3957, allocations: 66 kB / 0.5088 GB, free: 12.38 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002597/0.396, allocations: 103.9 kB / 0.5089 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002488/0.3985, allocations: 1.301 MB / 0.5102 GB, free: 10.95 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/0.3985, allocations: 0 / 0.5102 GB, free: 10.95 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000119/0.3986, allocations: 32 kB / 0.5102 GB, free: 10.92 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.665e-05/0.3987, allocations: 51.95 kB / 0.5103 GB, free: 10.87 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002655/0.4013, allocations: 1.492 MB / 0.5117 GB, free: 9.379 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01007/0.4114, allocations: 5.558 MB / 0.5172 GB, free: 3.754 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0017/0.4131, allocations: 0.8718 MB / 0.518 GB, free: 2.863 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001634/0.4147, allocations: 1.063 MB / 0.519 GB, free: 1.797 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2251/0.6398, allocations: 27.1 MB / 0.5455 GB, free: 106.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000869/0.6407, allocations: 0.5588 MB / 0.5461 GB, free: 106 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.785e-06/0.6407, allocations: 0 / 0.5461 GB, free: 106 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002713/0.6434, allocations: 1.908 MB / 0.5479 GB, free: 105.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.6434, allocations: 70.31 kB / 0.548 GB, free: 105.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004803/0.6482, allocations: 5.591 MB / 0.5534 GB, free: 102.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.6483, allocations: 41.17 kB / 0.5535 GB, free: 102.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001629/0.65, allocations: 2.967 MB / 0.5564 GB, free: 99.91 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001988/0.6502, allocations: 309.7 kB / 0.5567 GB, free: 99.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003871/0.6505, allocations: 427 kB / 0.5571 GB, free: 99.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.549e-05/0.6506, allocations: 301.1 kB / 0.5574 GB, free: 98.94 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000698/0.6513, allocations: 407.6 kB / 0.5578 GB, free: 98.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008659/0.6521, allocations: 1.089 MB / 0.5588 GB, free: 97.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00166/0.6538, allocations: 1.611 MB / 0.5604 GB, free: 95.28 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/0.6538, allocations: 4 kB / 0.5604 GB, free: 95.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002985/0.6568, allocations: 2.25 MB / 0.5626 GB, free: 93.04 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.6568, allocations: 16 kB / 0.5626 GB, free: 93.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001545/0.657, allocations: 160 kB / 0.5628 GB, free: 92.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.708e-05/0.657, allocations: 32 kB / 0.5628 GB, free: 92.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.658, allocations: 360 kB / 0.5631 GB, free: 92.49 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.953e-05/0.6581, allocations: 51.78 kB / 0.5632 GB, free: 92.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001859/0.6599, allocations: 191.1 kB / 0.5634 GB, free: 92.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001488/0.6601, allocations: 124 kB / 0.5635 GB, free: 92.18 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.001176/0.6612, allocations: 0.7183 MB / 0.5642 GB, free: 91.47 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006848/0.6619, allocations: 0.753 MB / 0.5649 GB, free: 90.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003702/0.6656, allocations: 2.15 MB / 0.567 GB, free: 88.63 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.6656, allocations: 9.812 kB / 0.567 GB, free: 88.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.6656, allocations: 0 / 0.567 GB, free: 88.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.6657, allocations: 3.984 kB / 0.567 GB, free: 88.62 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005497/0.6712, allocations: 3.575 MB / 0.5705 GB, free: 84.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001481/0.6713, allocations: 140 kB / 0.5707 GB, free: 84.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007102/0.672, allocations: 151.8 kB / 0.5708 GB, free: 84.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.997e-06/0.672, allocations: 4 kB / 0.5708 GB, free: 84.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.076e-05/0.6721, allocations: 68.05 kB / 0.5709 GB, free: 84.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.804e-06/0.6721, allocations: 4 kB / 0.5709 GB, free: 84.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.6721, allocations: 0 / 0.5709 GB, free: 84.62 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003433/0.6755, allocations: 2.194 MB / 0.573 GB, free: 82.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/0.6774, allocations: 0.7805 MB / 0.5738 GB, free: 81.63 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008329/0.6782, allocations: 15.98 kB / 0.5738 GB, free: 81.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001555/0.6798, allocations: 42.84 kB / 0.5738 GB, free: 81.57 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002209/0.68, allocations: 96.55 kB / 0.5739 GB, free: 81.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001214/0.6801, allocations: 68 kB / 0.574 GB, free: 81.41 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004428/0.6845, allocations: 3.604 MB / 0.5775 GB, free: 77.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6845, allocations: 0 / 0.5775 GB, free: 77.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00294/0.6875, allocations: 1.086 MB / 0.5786 GB, free: 76.82 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.004707/0.6922, allocations: 3.846 MB / 0.5823 GB, free: 73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002275/0.6944, allocations: 1.366 MB / 0.5837 GB, free: 71.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.6945, allocations: 0 / 0.5837 GB, free: 71.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009003/0.6954, allocations: 0.7321 MB / 0.5844 GB, free: 70.82 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00536/0.7007, allocations: 1.175 MB / 0.5855 GB, free: 69.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04252/0.7432, allocations: 30.56 MB / 0.6154 GB, free: 38.29 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001367/0.7446, allocations: 2.592 MB / 0.6179 GB, free: 35.67 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00194/0.7465, allocations: 0.6846 MB / 0.6186 GB, free: 34.98 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001703/0.7482, allocations: 2.393 MB / 0.6209 GB, free: 32.59 MB / 446.1 MB Notification: Performance of SimCode: time 2.335e-06/0.7482, allocations: 0 / 0.6209 GB, free: 32.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1988/0.947, allocations: 112.5 MB / 0.7308 GB, free: 0.6914 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.19/29.13, allocations: 12.34 kB / 0.7308 GB, free: 0.6836 MB / 0.5137 GB " [Timeout remaining time 630] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 34.73836147499969]