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.001284/0.001284, allocations: 77.88 kB / 21.42 MB, free: 3.074 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.001335/0.001335, allocations: 169.4 kB / 24.82 MB, free: 9.262 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 1.009/1.009, allocations: 177.1 MB / 205.3 MB, free: 5.504 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.222e-06/1.222e-06, allocations: 0 / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.694e-05/1.816e-05, allocations: 2.312 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009371/0.00939, allocations: 13.71 MB / 287.1 MB, free: 3.555 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1437/0.1531, allocations: 19.41 MB / 306.5 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008454/0.1616, allocations: 137.6 kB / 306.6 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008992/0.1706, allocations: 1.142 MB / 307.8 MB, free: 10.01 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01921/0.1898, allocations: 2.428 MB / 310.2 MB, free: 8.504 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01046/0.2002, allocations: 1.449 MB / 311.7 MB, free: 7.469 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01234/0.2126, allocations: 6.904 MB / 318.6 MB, free: 4.016 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006392/0.2132, allocations: 257.8 kB / 318.8 MB, free: 3.734 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003594/0.2168, allocations: 3.049 MB / 321.9 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009654/0.2178, allocations: 0.8252 MB / 322.7 MB, free: 15.85 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000188/0.218, allocations: 76 kB / 322.8 MB, free: 15.78 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002899/0.2209, allocations: 1.206 MB / 324 MB, free: 14.57 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002025/0.2211, allocations: 337.5 kB / 324.3 MB, free: 14.24 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007149/0.2218, allocations: 0.7476 MB / 325 MB, free: 13.49 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003006/0.2248, allocations: 2.805 MB / 327.8 MB, free: 10.67 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2248, allocations: 3.938 kB / 327.8 MB, free: 10.67 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2248, allocations: 0 / 327.8 MB, free: 10.67 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.209e-05/0.2249, allocations: 0 / 327.8 MB, free: 10.67 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.003391/0.2283, allocations: 3.972 MB / 331.8 MB, free: 6.629 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.2283, allocations: 16.02 kB / 331.8 MB, free: 6.613 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003739/0.2287, allocations: 449.4 kB / 332.3 MB, free: 6.172 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002119/0.2308, allocations: 2.513 MB / 334.8 MB, free: 3.562 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/0.2308, allocations: 37 kB / 334.8 MB, free: 3.523 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.498e-05/0.2309, allocations: 55.94 kB / 334.9 MB, free: 3.469 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005825/0.2315, allocations: 492.7 kB / 335.4 MB, free: 2.98 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.2315, allocations: 0 / 335.4 MB, free: 2.98 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.056e-05/0.2316, allocations: 23.94 kB / 335.4 MB, free: 2.957 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.2316, allocations: 19.98 kB / 335.4 MB, free: 2.938 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.232, allocations: 432.3 kB / 335.8 MB, free: 2.52 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002809/0.2348, allocations: 2.334 MB / 338.2 MB, free: 136 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003723/0.2352, allocations: 293.3 kB / 338.4 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003182/0.2355, allocations: 374.4 kB / 338.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0157/0.2512, allocations: 15.29 MB / 354.1 MB, free: 15.82 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002857/0.2515, allocations: 259.7 kB / 354.4 MB, free: 15.55 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.855e-06/0.2515, allocations: 3.984 kB / 354.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0008004/0.2523, allocations: 0.8113 MB / 355.2 MB, free: 14.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.875e-05/0.2523, allocations: 59.41 kB / 355.2 MB, free: 14.66 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002039/0.2544, allocations: 3.14 MB / 358.4 MB, free: 11.49 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.558e-05/0.2544, allocations: 37.7 kB / 358.4 MB, free: 11.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001208/0.2556, allocations: 1.689 MB / 360.1 MB, free: 9.746 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.2557, allocations: 174.5 kB / 360.3 MB, free: 9.574 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001795/0.2559, allocations: 243.9 kB / 360.5 MB, free: 9.328 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.256, allocations: 0.5198 MB / 361 MB, free: 8.801 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.2561, allocations: 105.9 kB / 361.1 MB, free: 8.695 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003291/0.2565, allocations: 0.6275 MB / 361.8 MB, free: 7.824 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005662/0.257, allocations: 0.8187 MB / 362.6 MB, free: 6.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.2571, allocations: 4 kB / 362.6 MB, free: 6.766 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0009048/0.258, allocations: 1.018 MB / 363.6 MB, free: 5.746 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.258, allocations: 12 kB / 363.6 MB, free: 5.734 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.865e-05/0.258, allocations: 80 kB / 363.7 MB, free: 5.656 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.2581, allocations: 16 kB / 363.7 MB, free: 5.641 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003671/0.2584, allocations: 200.5 kB / 363.9 MB, free: 5.445 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.2584, allocations: 23.92 kB / 363.9 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004741/0.2589, allocations: 111.2 kB / 364 MB, free: 5.312 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.95e-05/0.259, allocations: 56 kB / 364.1 MB, free: 5.258 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.0003166/0.2593, allocations: 225 kB / 364.3 MB, free: 5.027 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002444/0.2596, allocations: 413.5 kB / 364.7 MB, free: 4.621 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001172/0.2607, allocations: 0.984 MB / 365.7 MB, free: 3.625 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.2607, allocations: 4 kB / 365.7 MB, free: 3.621 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.2607, allocations: 1.375 kB / 365.7 MB, free: 3.621 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.2607, allocations: 3.938 kB / 365.7 MB, free: 3.617 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002167/0.2629, allocations: 2.127 MB / 367.8 MB, free: 1.426 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.132e-05/0.263, allocations: 71.98 kB / 367.9 MB, free: 1.355 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002193/0.2632, allocations: 84 kB / 368 MB, free: 1.273 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.2632, allocations: 4 kB / 368 MB, free: 1.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.416e-05/0.2632, allocations: 28 kB / 368 MB, free: 1.242 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.2632, allocations: 11.88 kB / 368 MB, free: 1.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.2632, allocations: 3.984 kB / 368 MB, free: 1.227 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008095/0.264, allocations: 1.031 MB / 369.1 MB, free: 164 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004103/0.2644, allocations: 431.4 kB / 369.5 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001529/0.2646, allocations: 14.95 kB / 369.5 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003214/0.2649, allocations: 27.73 kB / 369.5 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.265, allocations: 63.92 kB / 369.6 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.959e-05/0.2651, allocations: 32 kB / 369.6 MB, free: 15.61 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0011/0.2662, allocations: 1.625 MB / 371.2 MB, free: 13.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2662, allocations: 0 / 371.2 MB, free: 13.98 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008749/0.267, allocations: 0.5891 MB / 371.8 MB, free: 13.39 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.0008765/0.2679, allocations: 0.918 MB / 372.7 MB, free: 12.46 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005533/0.2685, allocations: 0.5782 MB / 373.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.2685, allocations: 4 kB / 373.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002517/0.2687, allocations: 335.7 kB / 373.7 MB, free: 11.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001636/0.2704, allocations: 0.6324 MB / 374.3 MB, free: 10.86 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003703/0.2741, allocations: 4.126 MB / 378.4 MB, free: 6.664 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002638/0.2743, allocations: 391.8 kB / 378.8 MB, free: 6.262 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006682/0.275, allocations: 357.1 kB / 379.1 MB, free: 5.906 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000841/0.2758, allocations: 0.7088 MB / 379.9 MB, free: 5.195 MB / 330.7 MB Notification: Performance of SimCode: time 8.91e-07/0.2758, allocations: 0 / 379.9 MB, free: 5.195 MB / 330.7 MB Notification: Performance of Templates: time 0.04342/0.3193, allocations: 37.56 MB / 417.4 MB, free: 184 kB / 362.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 -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.4046696410514414]