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.001299/0.001299, allocations: 112.2 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.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.001405/0.001405, allocations: 181.3 kB / 23.72 MB, free: 4.699 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.4/1.4, allocations: 225.6 MB / 252.5 MB, free: 13 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 47.91 kB / 370.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2751, allocations: 52.18 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02785/0.303, allocations: 26.81 MB / 449.4 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03355/0.3365, allocations: 22.42 MB / 471.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004909/0.3415, allocations: 269.1 kB / 472.1 MB, free: 12.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005435/0.3469, allocations: 1.78 MB / 473.9 MB, free: 11.1 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01181/0.3587, allocations: 3.318 MB / 477.2 MB, free: 7.758 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005883/0.3646, allocations: 1.644 MB / 478.9 MB, free: 6.109 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02155/0.3861, allocations: 12.76 MB / 491.6 MB, free: 9.309 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001629/0.3878, allocations: 0.5081 MB / 492.1 MB, free: 8.766 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004075/0.3918, allocations: 2.182 MB / 494.3 MB, free: 6.574 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003956/0.3958, allocations: 2.107 MB / 496.4 MB, free: 4.453 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009695/0.3968, allocations: 132 kB / 496.5 MB, free: 4.324 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007433/0.4042, allocations: 1.541 MB / 498.1 MB, free: 2.781 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001397/0.4056, allocations: 0.601 MB / 498.7 MB, free: 2.176 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005173/0.4108, allocations: 2.62 MB / 0.4896 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01353/0.4243, allocations: 6.663 MB / 0.4961 GB, free: 8.844 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.844e-06/0.4243, allocations: 3.984 kB / 0.4961 GB, free: 8.84 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4243, allocations: 0 / 0.4961 GB, free: 8.84 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002718/0.4246, allocations: 4 kB / 0.4961 GB, free: 8.836 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.01315/0.4377, allocations: 6.855 MB / 0.5028 GB, free: 1.898 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.4378, allocations: 8.031 kB / 0.5028 GB, free: 1.891 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004617/0.4382, allocations: 161.2 kB / 0.5029 GB, free: 1.723 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001459/0.4397, allocations: 0.7764 MB / 0.5037 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00898/0.4487, allocations: 4.379 MB / 0.508 GB, free: 12.44 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.837e-05/0.4487, allocations: 70 kB / 0.508 GB, free: 12.37 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004283/0.4492, allocations: 103.7 kB / 0.5081 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002745/0.4519, allocations: 1.305 MB / 0.5094 GB, free: 10.95 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.426e-05/0.4519, allocations: 0 / 0.5094 GB, free: 10.95 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001393/0.4521, allocations: 36 kB / 0.5094 GB, free: 10.91 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-05/0.4521, allocations: 39.97 kB / 0.5095 GB, free: 10.88 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002696/0.4548, allocations: 1.492 MB / 0.5109 GB, free: 9.383 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0118/0.4666, allocations: 5.558 MB / 0.5164 GB, free: 3.75 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002156/0.4688, allocations: 0.8802 MB / 0.5172 GB, free: 2.855 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001759/0.4705, allocations: 1.063 MB / 0.5183 GB, free: 1.789 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2485/0.719, allocations: 27.09 MB / 0.5447 GB, free: 106.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008142/0.7199, allocations: 0.5612 MB / 0.5453 GB, free: 106 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.856e-06/0.7199, allocations: 3.828 kB / 0.5453 GB, free: 106 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.00282/0.7227, allocations: 1.915 MB / 0.5471 GB, free: 105.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/0.7227, allocations: 63.91 kB / 0.5472 GB, free: 105.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004952/0.7277, allocations: 5.586 MB / 0.5526 GB, free: 102.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.365e-05/0.7278, allocations: 41.58 kB / 0.5527 GB, free: 102.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001591/0.7294, allocations: 2.97 MB / 0.5556 GB, free: 99.83 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002058/0.7296, allocations: 305 kB / 0.5559 GB, free: 99.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003786/0.7299, allocations: 427 kB / 0.5563 GB, free: 99.15 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.671e-05/0.73, allocations: 302.4 kB / 0.5566 GB, free: 98.85 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007016/0.7307, allocations: 411.2 kB / 0.557 GB, free: 98.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008532/0.7315, allocations: 1.084 MB / 0.558 GB, free: 97.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001577/0.7331, allocations: 1.612 MB / 0.5596 GB, free: 95.19 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.7331, allocations: 11.94 kB / 0.5596 GB, free: 95.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002776/0.7359, allocations: 2.249 MB / 0.5618 GB, free: 92.95 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.7359, allocations: 16 kB / 0.5618 GB, free: 92.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001644/0.7361, allocations: 160.6 kB / 0.562 GB, free: 92.78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.469e-05/0.7361, allocations: 32 kB / 0.562 GB, free: 92.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.7371, allocations: 359.3 kB / 0.5623 GB, free: 92.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.923e-05/0.7372, allocations: 51.78 kB / 0.5624 GB, free: 92.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001619/0.7388, allocations: 191.8 kB / 0.5626 GB, free: 92.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/0.7389, allocations: 123.9 kB / 0.5627 GB, free: 92.09 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.001066/0.74, allocations: 0.7114 MB / 0.5634 GB, free: 91.38 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004955/0.7405, allocations: 0.7569 MB / 0.5641 GB, free: 90.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003547/0.744, allocations: 2.155 MB / 0.5662 GB, free: 88.54 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.744, allocations: 8 kB / 0.5662 GB, free: 88.54 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.744, allocations: 0 / 0.5662 GB, free: 88.54 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.7441, allocations: 7.984 kB / 0.5663 GB, free: 88.53 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004561/0.7486, allocations: 3.571 MB / 0.5697 GB, free: 84.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001463/0.7488, allocations: 140 kB / 0.5699 GB, free: 84.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006637/0.7494, allocations: 147.8 kB / 0.57 GB, free: 84.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.7494, allocations: 4 kB / 0.57 GB, free: 84.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.309e-05/0.7495, allocations: 64.05 kB / 0.5701 GB, free: 84.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.7495, allocations: 4 kB / 0.5701 GB, free: 84.55 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.7495, allocations: 3.938 kB / 0.5701 GB, free: 84.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002611/0.7521, allocations: 2.189 MB / 0.5722 GB, free: 82.34 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001379/0.7535, allocations: 0.7841 MB / 0.573 GB, free: 81.55 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005356/0.754, allocations: 19.92 kB / 0.573 GB, free: 81.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.7551, allocations: 39.97 kB / 0.573 GB, free: 81.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.7553, allocations: 96.55 kB / 0.5731 GB, free: 81.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.736e-05/0.7554, allocations: 68 kB / 0.5732 GB, free: 81.34 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003725/0.7591, allocations: 3.608 MB / 0.5767 GB, free: 77.76 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7591, allocations: 0 / 0.5767 GB, free: 77.76 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002052/0.7612, allocations: 1.083 MB / 0.5778 GB, free: 76.74 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.00407/0.7652, allocations: 3.843 MB / 0.5815 GB, free: 72.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002019/0.7672, allocations: 1.363 MB / 0.5829 GB, free: 71.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.7672, allocations: 0 / 0.5829 GB, free: 71.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008451/0.7681, allocations: 0.7398 MB / 0.5836 GB, free: 70.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00461/0.7727, allocations: 1.175 MB / 0.5847 GB, free: 69.56 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03444/0.8071, allocations: 30.56 MB / 0.6146 GB, free: 38.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001248/0.8084, allocations: 2.592 MB / 0.6171 GB, free: 35.59 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001823/0.8102, allocations: 0.6885 MB / 0.6178 GB, free: 34.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001616/0.8118, allocations: 2.393 MB / 0.6201 GB, free: 32.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/0.8118, allocations: 3.938 kB / 0.6201 GB, free: 32.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2/1.012, allocations: 112.5 MB / 0.7299 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.5/29.51, allocations: 9.484 kB / 0.73 GB, free: 0.6445 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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 33.69400836410932]