Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001345/0.001345, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.001516/0.001516, allocations: 163.5 kB / 25.33 MB, free: 9.215 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8857/0.8857, allocations: 158.6 MB / 187.2 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 251 MB, free: 7.531 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.886e-05/2.012e-05, allocations: 6.25 kB / 251 MB, free: 7.523 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009373/0.009394, allocations: 13.38 MB / 264.4 MB, free: 10.09 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01508/0.02447, allocations: 18.81 MB / 283.2 MB, free: 7.203 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001724/0.02619, allocations: 138.5 kB / 283.4 MB, free: 7.066 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00218/0.02837, allocations: 1.117 MB / 284.5 MB, free: 5.941 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005344/0.03372, allocations: 2.393 MB / 286.9 MB, free: 3.531 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002784/0.0365, allocations: 1.406 MB / 288.3 MB, free: 2.113 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006062/0.04256, allocations: 6.683 MB / 295 MB, free: 11.41 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004025/0.04296, allocations: 257.9 kB / 295.2 MB, free: 11.13 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002356/0.04532, allocations: 2.839 MB / 298.1 MB, free: 8.285 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000743/0.04606, allocations: 0.8021 MB / 298.9 MB, free: 7.48 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001478/0.04621, allocations: 76 kB / 298.9 MB, free: 7.406 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002272/0.04848, allocations: 1.085 MB / 300 MB, free: 6.32 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001927/0.04868, allocations: 341.6 kB / 300.3 MB, free: 5.984 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005817/0.04926, allocations: 0.7476 MB / 301.1 MB, free: 5.234 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002331/0.05159, allocations: 2.825 MB / 303.9 MB, free: 2.398 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.05159, allocations: 3.938 kB / 303.9 MB, free: 2.395 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.05159, allocations: 0 / 303.9 MB, free: 2.395 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.531e-05/0.05162, allocations: 0 / 303.9 MB, free: 2.395 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.003197/0.05482, allocations: 3.957 MB / 307.9 MB, free: 14.37 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.05485, allocations: 15.98 kB / 307.9 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003266/0.05518, allocations: 453.4 kB / 308.3 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001933/0.05711, allocations: 2.537 MB / 310.9 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.674e-05/0.05714, allocations: 37 kB / 310.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.88e-05/0.05723, allocations: 55.94 kB / 311 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006578/0.05789, allocations: 0.5436 MB / 311.5 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.0579, allocations: 0 / 311.5 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.577e-05/0.05794, allocations: 20 kB / 311.5 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.661e-05/0.05796, allocations: 19.98 kB / 311.5 MB, free: 10.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005672/0.05853, allocations: 490.4 kB / 312 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003244/0.06177, allocations: 2.875 MB / 314.9 MB, free: 7.172 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004093/0.06218, allocations: 333.2 kB / 315.2 MB, free: 6.832 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000397/0.06258, allocations: 417.8 kB / 315.6 MB, free: 6.418 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01431/0.07688, allocations: 15.25 MB / 330.9 MB, free: 6.785 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003235/0.07721, allocations: 287.5 kB / 331.2 MB, free: 6.492 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.733e-06/0.07721, allocations: 0 / 331.2 MB, free: 6.492 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009055/0.07811, allocations: 0.8737 MB / 332 MB, free: 5.609 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.07815, allocations: 59.41 kB / 332.1 MB, free: 5.539 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002611/0.08076, allocations: 3.19 MB / 335.3 MB, free: 2.324 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.499e-05/0.0808, allocations: 37.7 kB / 335.3 MB, free: 2.281 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009258/0.08172, allocations: 1.674 MB / 337 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.65e-05/0.08182, allocations: 174.6 kB / 337.2 MB, free: 436 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001745/0.08199, allocations: 244 kB / 337.4 MB, free: 184 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.08211, allocations: 0.5082 MB / 337.9 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.08229, allocations: 129.9 kB / 338 MB, free: 15.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00038/0.08267, allocations: 0.6549 MB / 338.7 MB, free: 14.64 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005922/0.08326, allocations: 0.8461 MB / 339.5 MB, free: 13.57 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.08327, allocations: 4 kB / 339.5 MB, free: 13.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0009185/0.08418, allocations: 1.084 MB / 340.6 MB, free: 12.46 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.0842, allocations: 12 kB / 340.6 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-05/0.08427, allocations: 83.94 kB / 340.7 MB, free: 12.37 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.08429, allocations: 16 kB / 340.7 MB, free: 12.36 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003862/0.08467, allocations: 199.7 kB / 340.9 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.746e-05/0.08469, allocations: 27.86 kB / 341 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004346/0.08512, allocations: 107.2 kB / 341.1 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.935e-05/0.08519, allocations: 68.12 kB / 341.1 MB, free: 11.96 MB / 330.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.0002888/0.08548, allocations: 224.2 kB / 341.4 MB, free: 11.73 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000235/0.08572, allocations: 413.5 kB / 341.8 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001236/0.08695, allocations: 1.031 MB / 342.8 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.08696, allocations: 4 kB / 342.8 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.08696, allocations: 0 / 342.8 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.08697, allocations: 0 / 342.8 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00182/0.08879, allocations: 2.102 MB / 344.9 MB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.936e-05/0.08884, allocations: 68 kB / 345 MB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002314/0.08907, allocations: 91.81 kB / 345 MB, free: 7.965 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.08907, allocations: 0 / 345 MB, free: 7.965 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.708e-05/0.08911, allocations: 35.98 kB / 345.1 MB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.08911, allocations: 0 / 345.1 MB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.08911, allocations: 4.062 kB / 345.1 MB, free: 7.926 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008915/0.09, allocations: 1.082 MB / 346.2 MB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003723/0.09038, allocations: 443.1 kB / 346.6 MB, free: 6.375 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/0.09054, allocations: 8 kB / 346.6 MB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003153/0.09086, allocations: 27.91 kB / 346.6 MB, free: 6.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.09098, allocations: 59.94 kB / 346.7 MB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.453e-05/0.09103, allocations: 39.98 kB / 346.7 MB, free: 6.242 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001363/0.09239, allocations: 1.74 MB / 348.5 MB, free: 4.504 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.09239, allocations: 0 / 348.5 MB, free: 4.504 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008245/0.09321, allocations: 0.5969 MB / 349.1 MB, free: 3.906 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.0008469/0.09406, allocations: 0.8466 MB / 349.9 MB, free: 3.051 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006104/0.09467, allocations: 0.6248 MB / 350.5 MB, free: 2.395 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.09467, allocations: 4 kB / 350.5 MB, free: 2.391 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002834/0.09496, allocations: 343.8 kB / 350.9 MB, free: 2.023 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.09602, allocations: 0.5379 MB / 351.4 MB, free: 1.48 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1045/0.2006, allocations: 4.145 MB / 355.6 MB, free: 87.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002251/0.2008, allocations: 386.6 kB / 355.9 MB, free: 87.72 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000784/0.2016, allocations: 362.5 kB / 356.3 MB, free: 87.7 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000146/0.2017, allocations: 155.5 kB / 356.4 MB, free: 87.7 MB / 330.7 MB Notification: Performance of SimCode: time 1.923e-06/0.2017, allocations: 0 / 356.4 MB, free: 87.7 MB / 330.7 MB Notification: Performance of Templates: time 0.03555/0.2373, allocations: 39.15 MB / 395.6 MB, free: 56.04 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.4125917027704418]