Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001516/0.001516, allocations: 115.5 kB / 18.45 MB, free: 4.602 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.001675/0.001675, allocations: 192.3 kB / 21.4 MB, free: 1.664 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.434/1.434, allocations: 225.6 MB / 249.8 MB, free: 3.727 MB / 190.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: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 47.92 kB / 366.8 MB, free: 376 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1047, allocations: 52.14 MB / 418.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01631/0.121, allocations: 15.35 MB / 434.3 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2069/0.3279, allocations: 20.8 MB / 455.1 MB, free: 7.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002178/0.3301, allocations: 85.19 kB / 455.2 MB, free: 7.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003044/0.3331, allocations: 1.273 MB / 456.4 MB, free: 7.359 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006942/0.3401, allocations: 2.37 MB / 458.8 MB, free: 6.582 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004314/0.3444, allocations: 1.447 MB / 460.3 MB, free: 6.211 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01019/0.3546, allocations: 6.629 MB / 466.9 MB, free: 5.055 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006171/0.3552, allocations: 279.1 kB / 467.2 MB, free: 4.945 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001728/0.3569, allocations: 1.134 MB / 468.3 MB, free: 4.625 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00128/0.3582, allocations: 1.142 MB / 469.4 MB, free: 4.168 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002082/0.3584, allocations: 78.72 kB / 469.5 MB, free: 4.164 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0042/0.3626, allocations: 1.481 MB / 471 MB, free: 4.023 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002938/0.3629, allocations: 333.4 kB / 471.3 MB, free: 3.797 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001221/0.3641, allocations: 1.431 MB / 472.8 MB, free: 2.895 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006395/0.3705, allocations: 3.997 MB / 476.8 MB, free: 1.484 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3705, allocations: 1.062 kB / 476.8 MB, free: 1.484 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3705, allocations: 3.938 kB / 476.8 MB, free: 1.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.122e-05/0.3706, allocations: 0 / 476.8 MB, free: 1.48 MB / 366.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.006321/0.3769, allocations: 3.964 MB / 480.7 MB, free: 14.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.377, allocations: 13.22 kB / 480.7 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005986/0.3776, allocations: 430.6 kB / 481.2 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003671/0.3812, allocations: 2.507 MB / 483.7 MB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.719e-05/0.3813, allocations: 42.12 kB / 483.7 MB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.3814, allocations: 51.64 kB / 483.8 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.3828, allocations: 0.731 MB / 484.5 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.3828, allocations: 7.922 kB / 484.5 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.278e-05/0.3829, allocations: 18.69 kB / 484.5 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.193e-05/0.3829, allocations: 20.73 kB / 484.5 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001537/0.3845, allocations: 0.8178 MB / 485.4 MB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006271/0.3907, allocations: 3.096 MB / 488.4 MB, free: 9.742 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/0.3921, allocations: 0.5198 MB / 489 MB, free: 9.461 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.3931, allocations: 0.568 MB / 489.5 MB, free: 9.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03436/0.4275, allocations: 30.13 MB / 0.5075 GB, free: 7.953 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008409/0.4283, allocations: 361.7 kB / 0.5078 GB, free: 7.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.735e-06/0.4283, allocations: 0 / 0.5078 GB, free: 7.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002835/0.4312, allocations: 1.134 MB / 0.5089 GB, free: 6.445 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.487e-05/0.4312, allocations: 59.41 kB / 0.509 GB, free: 6.375 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004419/0.4356, allocations: 3.087 MB / 0.512 GB, free: 3.289 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.099e-05/0.4357, allocations: 37.7 kB / 0.512 GB, free: 3.246 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001598/0.4373, allocations: 1.591 MB / 0.5136 GB, free: 1.652 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002145/0.4376, allocations: 180.1 kB / 0.5138 GB, free: 1.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00036/0.4379, allocations: 226.4 kB / 0.514 GB, free: 1.254 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.4381, allocations: 337.9 kB / 0.5143 GB, free: 0.918 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006428/0.4387, allocations: 242.6 kB / 0.5145 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009628/0.4397, allocations: 0.6059 MB / 0.5151 GB, free: 15.9 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001662/0.4414, allocations: 0.8921 MB / 0.516 GB, free: 14.84 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.4414, allocations: 4 kB / 0.516 GB, free: 14.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002772/0.4441, allocations: 1.261 MB / 0.5172 GB, free: 13.57 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.832e-05/0.4442, allocations: 8.625 kB / 0.5172 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001401/0.4443, allocations: 84.83 kB / 0.5173 GB, free: 13.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.981e-05/0.4443, allocations: 25.06 kB / 0.5174 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007644/0.4451, allocations: 207.6 kB / 0.5176 GB, free: 13.26 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.492e-05/0.4451, allocations: 31.75 kB / 0.5176 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/0.4466, allocations: 111.3 kB / 0.5177 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001209/0.4467, allocations: 64 kB / 0.5177 GB, free: 13.05 MB / 430.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.0009621/0.4477, allocations: 458.3 kB / 0.5182 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005488/0.4482, allocations: 413.4 kB / 0.5186 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002846/0.4511, allocations: 1.208 MB / 0.5198 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.156e-06/0.4511, allocations: 4 kB / 0.5198 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.4511, allocations: 4.516 kB / 0.5198 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.4511, allocations: 7.984 kB / 0.5198 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003992/0.4551, allocations: 2.15 MB / 0.5219 GB, free: 8.762 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001026/0.4552, allocations: 68 kB / 0.5219 GB, free: 8.695 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005102/0.4557, allocations: 95.86 kB / 0.522 GB, free: 8.602 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.4557, allocations: 0 / 0.522 GB, free: 8.602 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-05/0.4558, allocations: 31.98 kB / 0.5221 GB, free: 8.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.4558, allocations: 4 kB / 0.5221 GB, free: 8.566 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4558, allocations: 4.062 kB / 0.5221 GB, free: 8.562 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/0.4584, allocations: 1.352 MB / 0.5234 GB, free: 7.191 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/0.4595, allocations: 0.4983 MB / 0.5239 GB, free: 6.672 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002999/0.4598, allocations: 15.98 kB / 0.5239 GB, free: 6.656 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007448/0.4605, allocations: 27.97 kB / 0.5239 GB, free: 6.629 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.4607, allocations: 60.02 kB / 0.524 GB, free: 6.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.743e-05/0.4608, allocations: 39.98 kB / 0.524 GB, free: 6.531 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002896/0.4637, allocations: 2.01 MB / 0.526 GB, free: 4.527 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4637, allocations: 0 / 0.526 GB, free: 4.527 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001658/0.4654, allocations: 0.6008 MB / 0.5266 GB, free: 3.926 MB / 430.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.001192/0.4666, allocations: 0.7789 MB / 0.5273 GB, free: 3.289 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.4683, allocations: 0.7782 MB / 0.5281 GB, free: 2.484 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.4683, allocations: 0 / 0.5281 GB, free: 2.484 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007967/0.4691, allocations: 423.6 kB / 0.5285 GB, free: 2.047 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002776/0.4719, allocations: 0.639 MB / 0.5291 GB, free: 1.41 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007457/0.4793, allocations: 4.656 MB / 0.5337 GB, free: 12.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001343/0.4807, allocations: 1.71 MB / 0.5353 GB, free: 10.96 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003794/0.4811, allocations: 155.4 kB / 0.5355 GB, free: 10.81 MB / 446.1 MB Notification: Performance of SimCode: time 1.433e-06/0.4811, allocations: 0 / 0.5355 GB, free: 10.81 MB / 446.1 MB Notification: Performance of Templates: time 0.06135/0.5424, allocations: 38.78 MB / 0.5733 GB, free: 4.195 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 11.186879239045084]