Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.0009317/0.0009317, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.0009446/0.0009446, allocations: 169.9 kB / 24.91 MB, free: 8.723 MB / 18.57 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 0.9192/0.9192, allocations: 177.1 MB / 205.3 MB, free: 5.102 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 273.5 MB, free: 1.152 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.204e-05/1.323e-05, allocations: 9.969 kB / 273.5 MB, free: 1.145 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009128/0.009141, allocations: 13.76 MB / 287.2 MB, free: 3.328 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1275/0.1366, allocations: 19.81 MB / 307.1 MB, free: 9.914 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002054/0.1387, allocations: 132.6 kB / 307.2 MB, free: 9.824 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002383/0.141, allocations: 1.183 MB / 308.4 MB, free: 9.258 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00642/0.1475, allocations: 2.388 MB / 310.8 MB, free: 7.812 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004366/0.1518, allocations: 1.407 MB / 312.2 MB, free: 6.793 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00691/0.1587, allocations: 6.854 MB / 319 MB, free: 3.363 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006112/0.1594, allocations: 294.5 kB / 319.3 MB, free: 3.035 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002683/0.162, allocations: 3.04 MB / 322.3 MB, free: 15.99 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009857/0.163, allocations: 0.8253 MB / 323.2 MB, free: 15.16 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001814/0.1632, allocations: 72 kB / 323.2 MB, free: 15.09 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002959/0.1662, allocations: 1.264 MB / 324.5 MB, free: 13.82 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002054/0.1664, allocations: 337.5 kB / 324.8 MB, free: 13.49 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001071/0.1674, allocations: 0.756 MB / 325.6 MB, free: 12.73 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00355/0.171, allocations: 2.801 MB / 328.4 MB, free: 9.922 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.171, allocations: 0 / 328.4 MB, free: 9.922 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.171, allocations: 0 / 328.4 MB, free: 9.922 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.768e-05/0.1711, allocations: 4 kB / 328.4 MB, free: 9.918 MB / 282.7 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.003273/0.1744, allocations: 3.666 MB / 332.1 MB, free: 6.199 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.1744, allocations: 8.031 kB / 332.1 MB, free: 6.191 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000281/0.1747, allocations: 287.6 kB / 332.3 MB, free: 5.91 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00183/0.1765, allocations: 2.054 MB / 334.4 MB, free: 3.742 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/0.1765, allocations: 33 kB / 334.4 MB, free: 3.707 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.545e-05/0.1766, allocations: 51.98 kB / 334.5 MB, free: 3.656 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005286/0.1771, allocations: 471.5 kB / 334.9 MB, free: 3.188 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1771, allocations: 0 / 334.9 MB, free: 3.188 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.823e-05/0.1772, allocations: 23.94 kB / 335 MB, free: 3.164 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.1772, allocations: 19.98 kB / 335 MB, free: 3.145 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003405/0.1775, allocations: 224.5 kB / 335.2 MB, free: 2.93 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002499/0.18, allocations: 1.559 MB / 336.8 MB, free: 1.332 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002839/0.1803, allocations: 284.8 kB / 337 MB, free: 1.047 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002635/0.1806, allocations: 330.9 kB / 337.4 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02318/0.2038, allocations: 23.03 MB / 360.4 MB, free: 8.836 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002659/0.204, allocations: 217.8 kB / 360.6 MB, free: 8.605 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.974e-06/0.204, allocations: 0 / 360.6 MB, free: 8.605 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005583/0.2046, allocations: 479.3 kB / 361.1 MB, free: 8.137 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.351e-05/0.2046, allocations: 63.41 kB / 361.1 MB, free: 8.062 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001509/0.2061, allocations: 2.656 MB / 363.8 MB, free: 5.391 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002934/0.2064, allocations: 37.7 kB / 363.8 MB, free: 5.348 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003889/0.2068, allocations: 0.7596 MB / 364.6 MB, free: 4.574 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.479e-05/0.2069, allocations: 170.5 kB / 364.8 MB, free: 4.406 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/0.2071, allocations: 198.2 kB / 364.9 MB, free: 4.207 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.771e-05/0.2072, allocations: 345.8 kB / 365.3 MB, free: 3.863 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.691e-05/0.2072, allocations: 73.91 kB / 365.4 MB, free: 3.789 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002527/0.2075, allocations: 456.2 kB / 365.8 MB, free: 3.164 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004237/0.2079, allocations: 0.621 MB / 366.4 MB, free: 2.375 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.2079, allocations: 4 kB / 366.4 MB, free: 2.371 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0006299/0.2086, allocations: 0.697 MB / 367.1 MB, free: 1.672 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.2086, allocations: 12 kB / 367.1 MB, free: 1.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-05/0.2086, allocations: 20 kB / 367.2 MB, free: 1.641 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.2087, allocations: 16 kB / 367.2 MB, free: 1.625 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004103/0.2091, allocations: 219.6 kB / 367.4 MB, free: 1.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.565e-05/0.2091, allocations: 31.89 kB / 367.4 MB, free: 1.379 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004622/0.2095, allocations: 107.3 kB / 367.5 MB, free: 1.273 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.303e-05/0.2096, allocations: 36 kB / 367.6 MB, free: 1.238 MB / 314.7 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.0002503/0.2099, allocations: 168.7 kB / 367.7 MB, free: 1.066 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001694/0.21, allocations: 255.7 kB / 368 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009482/0.211, allocations: 0.7799 MB / 368.8 MB, free: 28 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.211, allocations: 4 kB / 368.8 MB, free: 24 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.211, allocations: 1.312 kB / 368.8 MB, free: 24 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.211, allocations: 3.938 kB / 368.8 MB, free: 20 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001362/0.2123, allocations: 1.556 MB / 370.3 MB, free: 14.42 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-05/0.2124, allocations: 12 kB / 370.3 MB, free: 14.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002455/0.2126, allocations: 99.84 kB / 370.4 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.2126, allocations: 4 kB / 370.4 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.66e-05/0.2127, allocations: 16 kB / 370.4 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.2127, allocations: 0 / 370.4 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.2127, allocations: 9.484 kB / 370.5 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008888/0.2136, allocations: 0.6249 MB / 371.1 MB, free: 13.63 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000321/0.2139, allocations: 389.2 kB / 371.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.214, allocations: 19.92 kB / 371.5 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002896/0.2143, allocations: 19.98 kB / 371.5 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.155e-05/0.2144, allocations: 43.86 kB / 371.5 MB, free: 13.17 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.139e-05/0.2144, allocations: 12 kB / 371.6 MB, free: 13.16 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008146/0.2153, allocations: 1.421 MB / 373 MB, free: 11.73 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2153, allocations: 7.938 kB / 373 MB, free: 11.72 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008022/0.2161, allocations: 0.5891 MB / 373.6 MB, free: 11.13 MB / 330.7 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.0008455/0.2169, allocations: 0.924 MB / 374.5 MB, free: 10.2 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004525/0.2174, allocations: 465.4 kB / 374.9 MB, free: 9.723 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.646e-05/0.2174, allocations: 41.44 kB / 375 MB, free: 9.684 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002054/0.2176, allocations: 236.9 kB / 375.2 MB, free: 9.426 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/0.2188, allocations: 0.6164 MB / 375.8 MB, free: 8.812 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003453/0.2222, allocations: 3.986 MB / 379.8 MB, free: 4.762 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002257/0.2225, allocations: 387.9 kB / 380.2 MB, free: 4.363 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005781/0.223, allocations: 357.1 kB / 380.6 MB, free: 4.008 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007535/0.2238, allocations: 0.5694 MB / 381.1 MB, free: 3.434 MB / 330.7 MB Notification: Performance of SimCode: time 9.52e-07/0.2238, allocations: 0 / 381.1 MB, free: 3.434 MB / 330.7 MB Notification: Performance of Templates: time 0.04288/0.2667, allocations: 37.42 MB / 418.5 MB, free: 14.55 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.333277517929673]