Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001325/0.001325, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.00142/0.00142, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.477/1.477, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.InvertersExtendedModel,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 55.86 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1068, allocations: 53.33 MB / 426.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.2097/0.3165, allocations: 15.35 MB / 441.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02824/0.3447, allocations: 20.84 MB / 462.5 MB, free: 3.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003854/0.3486, allocations: 136.3 kB / 462.6 MB, free: 3.176 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004572/0.3531, allocations: 1.268 MB / 463.9 MB, free: 2.508 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01036/0.3635, allocations: 2.371 MB / 466.3 MB, free: 1.051 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005691/0.3692, allocations: 1.443 MB / 467.7 MB, free: 304 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01173/0.3809, allocations: 6.716 MB / 474.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007493/0.3817, allocations: 270.4 kB / 474.7 MB, free: 12.94 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002246/0.3839, allocations: 1.18 MB / 475.9 MB, free: 12.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001866/0.3858, allocations: 1.142 MB / 477 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002603/0.386, allocations: 75.25 kB / 477.1 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005069/0.3911, allocations: 1.476 MB / 478.6 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004006/0.3915, allocations: 340.2 kB / 478.9 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001908/0.3934, allocations: 1.432 MB / 480.3 MB, free: 9.879 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0075/0.4009, allocations: 4.012 MB / 484.4 MB, free: 6.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.4009, allocations: 0 / 484.4 MB, free: 6.688 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4009, allocations: 0 / 484.4 MB, free: 6.688 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001097/0.401, allocations: 0 / 484.4 MB, free: 6.688 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006932/0.408, allocations: 3.965 MB / 488.3 MB, free: 2.637 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.408, allocations: 8.031 kB / 488.3 MB, free: 2.629 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001581/0.4082, allocations: 98.5 kB / 488.4 MB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005694/0.4087, allocations: 429.3 kB / 488.8 MB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003868/0.4126, allocations: 2.503 MB / 491.3 MB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.751e-05/0.4127, allocations: 37 kB / 491.4 MB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.4128, allocations: 55.94 kB / 491.4 MB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.4143, allocations: 0.7343 MB / 492.2 MB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.4143, allocations: 0 / 492.2 MB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.676e-05/0.4144, allocations: 16 kB / 492.2 MB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.646e-05/0.4144, allocations: 23.98 kB / 492.2 MB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001738/0.4161, allocations: 0.8163 MB / 493 MB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00582/0.4219, allocations: 3.103 MB / 496.1 MB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.4232, allocations: 0.5224 MB / 496.6 MB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001008/0.4242, allocations: 0.5587 MB / 497.2 MB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03342/0.4576, allocations: 30.77 MB / 0.5156 GB, free: 6.555 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008514/0.4585, allocations: 369.6 kB / 0.516 GB, free: 6.184 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 3.347e-06/0.4585, allocations: 0 / 0.516 GB, free: 6.184 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002704/0.4612, allocations: 1.122 MB / 0.517 GB, free: 5.055 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.775e-05/0.4613, allocations: 71.31 kB / 0.5171 GB, free: 4.973 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004311/0.4656, allocations: 3.083 MB / 0.5201 GB, free: 1.891 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001255/0.4657, allocations: 41.7 kB / 0.5202 GB, free: 1.844 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001473/0.4672, allocations: 1.585 MB / 0.5217 GB, free: 256 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000199/0.4674, allocations: 174.5 kB / 0.5219 GB, free: 80 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003559/0.4677, allocations: 230.5 kB / 0.5221 GB, free: 15.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.4679, allocations: 338 kB / 0.5224 GB, free: 15.51 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006446/0.4685, allocations: 245.8 kB / 0.5227 GB, free: 15.27 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009294/0.4695, allocations: 0.606 MB / 0.5232 GB, free: 14.49 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001605/0.4711, allocations: 0.9061 MB / 0.5241 GB, free: 13.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/0.4711, allocations: 4 kB / 0.5241 GB, free: 13.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002481/0.4735, allocations: 1.254 MB / 0.5254 GB, free: 12.15 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.4736, allocations: 12.62 kB / 0.5254 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000121/0.4737, allocations: 80.84 kB / 0.5255 GB, free: 12.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.011e-05/0.4737, allocations: 16 kB / 0.5255 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007596/0.4745, allocations: 203.7 kB / 0.5257 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.929e-05/0.4745, allocations: 27.86 kB / 0.5257 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.4756, allocations: 111.3 kB / 0.5258 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/0.4757, allocations: 64.62 kB / 0.5259 GB, free: 11.64 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0008421/0.4766, allocations: 461.4 kB / 0.5263 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000509/0.4771, allocations: 421.3 kB / 0.5267 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002901/0.48, allocations: 1.202 MB / 0.5279 GB, free: 9.555 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.48, allocations: 13.3 kB / 0.5279 GB, free: 9.543 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.48, allocations: 0 / 0.5279 GB, free: 9.543 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.48, allocations: 4 kB / 0.5279 GB, free: 9.539 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003745/0.4838, allocations: 2.143 MB / 0.53 GB, free: 7.332 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000109/0.4839, allocations: 71.98 kB / 0.53 GB, free: 7.262 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005158/0.4844, allocations: 91.86 kB / 0.5301 GB, free: 7.172 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.137e-06/0.4844, allocations: 4 kB / 0.5301 GB, free: 7.168 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.573e-05/0.4845, allocations: 35.98 kB / 0.5302 GB, free: 7.133 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.4845, allocations: 0 / 0.5302 GB, free: 7.133 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.4845, allocations: 8.875 kB / 0.5302 GB, free: 7.125 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002575/0.487, allocations: 1.347 MB / 0.5315 GB, free: 5.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008538/0.4879, allocations: 0.4982 MB / 0.532 GB, free: 5.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000272/0.4882, allocations: 8 kB / 0.532 GB, free: 5.223 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006916/0.4889, allocations: 35.95 kB / 0.532 GB, free: 5.188 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.489, allocations: 63.95 kB / 0.5321 GB, free: 5.125 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.692e-05/0.4891, allocations: 39.98 kB / 0.5321 GB, free: 5.086 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00307/0.4922, allocations: 2.007 MB / 0.5341 GB, free: 3.086 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4922, allocations: 0 / 0.5341 GB, free: 3.086 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001708/0.4939, allocations: 0.593 MB / 0.5347 GB, free: 2.492 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.00415/0.498, allocations: 2.578 MB / 0.5372 GB, free: 15.88 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001822/0.4999, allocations: 0.779 MB / 0.5379 GB, free: 15.08 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.4999, allocations: 4.062 kB / 0.5379 GB, free: 15.07 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008571/0.5007, allocations: 423 kB / 0.5384 GB, free: 14.64 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00316/0.5039, allocations: 0.6458 MB / 0.539 GB, free: 14 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02966/0.5335, allocations: 17.05 MB / 0.5556 GB, free: 12.43 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00164/0.5352, allocations: 1.71 MB / 0.5573 GB, free: 10.69 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001145/0.5363, allocations: 361.3 kB / 0.5576 GB, free: 10.33 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001505/0.5378, allocations: 1.261 MB / 0.5589 GB, free: 9.066 MB / 478.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5378, allocations: 0 / 0.5589 GB, free: 9.066 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3207/0.8585, allocations: 63.23 MB / 0.6206 GB, free: 165.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.75/16.61, allocations: 2.75 kB / 0.6206 GB, free: 165.1 MB / 0.5137 GB " [Timeout remaining time 643] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.846757867140695]