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.0009574/0.0009574, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.000987/0.000987, allocations: 163.9 kB / 25.61 MB, free: 8.582 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.962/0.962, allocations: 177.2 MB / 206.1 MB, free: 4.469 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.683e-06/1.683e-06, allocations: 0 / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.229e-05/2.398e-05, allocations: 2.312 kB / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009979/0.01, allocations: 13.7 MB / 287.9 MB, free: 6.668 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01727/0.02727, allocations: 19.4 MB / 307.3 MB, free: 3.203 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001566/0.02884, allocations: 138.5 kB / 307.4 MB, free: 3.066 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002052/0.03089, allocations: 1.145 MB / 308.6 MB, free: 1.91 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004203/0.03509, allocations: 2.429 MB / 311 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002424/0.03752, allocations: 1.453 MB / 312.5 MB, free: 14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005813/0.04333, allocations: 6.898 MB / 319.3 MB, free: 7.082 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003832/0.04371, allocations: 261.8 kB / 319.6 MB, free: 6.797 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002356/0.04607, allocations: 3.053 MB / 322.7 MB, free: 3.738 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007229/0.04679, allocations: 0.8291 MB / 323.5 MB, free: 2.906 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.0469, allocations: 72 kB / 323.6 MB, free: 2.836 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001776/0.04868, allocations: 1.213 MB / 324.8 MB, free: 1.621 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001972/0.04887, allocations: 333.6 kB / 325.1 MB, free: 1.293 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006946/0.04957, allocations: 0.7515 MB / 325.8 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002221/0.05179, allocations: 2.798 MB / 328.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.05179, allocations: 0 / 328.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.05179, allocations: 0 / 328.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.346e-05/0.05182, allocations: 0 / 328.6 MB, free: 13.73 MB / 314.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.003002/0.05482, allocations: 3.975 MB / 332.6 MB, free: 9.691 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.05485, allocations: 8.031 kB / 332.6 MB, free: 9.684 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00032/0.05517, allocations: 457.4 kB / 333.1 MB, free: 9.234 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001983/0.05715, allocations: 2.509 MB / 335.6 MB, free: 6.629 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/0.05718, allocations: 37 kB / 335.6 MB, free: 6.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.898e-05/0.05727, allocations: 67.88 kB / 335.7 MB, free: 6.523 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005347/0.0578, allocations: 492.7 kB / 336.2 MB, free: 6.035 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.05782, allocations: 3.938 kB / 336.2 MB, free: 6.031 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.417e-05/0.05786, allocations: 19.98 kB / 336.2 MB, free: 6.012 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.05788, allocations: 19.98 kB / 336.2 MB, free: 5.992 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004612/0.05834, allocations: 432.3 kB / 336.6 MB, free: 5.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002554/0.06089, allocations: 2.329 MB / 339 MB, free: 3.188 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003434/0.06124, allocations: 285.4 kB / 339.2 MB, free: 2.895 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003255/0.06156, allocations: 377.6 kB / 339.6 MB, free: 2.523 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1339/0.1954, allocations: 15.19 MB / 354.8 MB, free: 56.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002829/0.1957, allocations: 268.2 kB / 355.1 MB, free: 56.3 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.485e-06/0.1957, allocations: 0 / 355.1 MB, free: 56.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007827/0.1965, allocations: 0.8106 MB / 355.9 MB, free: 56.27 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.576e-05/0.1965, allocations: 61.66 kB / 355.9 MB, free: 56.2 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001681/0.1982, allocations: 3.131 MB / 359.1 MB, free: 54.66 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/0.1982, allocations: 37.45 kB / 359.1 MB, free: 54.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007276/0.199, allocations: 1.692 MB / 360.8 MB, free: 53.29 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.941e-05/0.1991, allocations: 176.2 kB / 361 MB, free: 53.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001717/0.1992, allocations: 243 kB / 361.2 MB, free: 52.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.075e-05/0.1993, allocations: 0.5167 MB / 361.7 MB, free: 52.4 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.1994, allocations: 104.7 kB / 361.8 MB, free: 52.3 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002513/0.1997, allocations: 0.6331 MB / 362.5 MB, free: 51.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004599/0.2001, allocations: 0.8107 MB / 363.3 MB, free: 50.51 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.102e-06/0.2001, allocations: 4 kB / 363.3 MB, free: 50.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.000767/0.2009, allocations: 1.025 MB / 364.3 MB, free: 49.57 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.2009, allocations: 15.94 kB / 364.3 MB, free: 49.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.361e-05/0.201, allocations: 80 kB / 364.4 MB, free: 49.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.201, allocations: 16 kB / 364.4 MB, free: 49.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003743/0.2014, allocations: 199 kB / 364.6 MB, free: 49.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.2014, allocations: 32.27 kB / 364.6 MB, free: 49.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004752/0.2019, allocations: 103 kB / 364.7 MB, free: 49.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.788e-05/0.2019, allocations: 60 kB / 364.8 MB, free: 49.1 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.0002743/0.2022, allocations: 213.7 kB / 365 MB, free: 48.89 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001871/0.2024, allocations: 413.5 kB / 365.4 MB, free: 48.48 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/0.2035, allocations: 0.9916 MB / 366.4 MB, free: 47.57 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.2035, allocations: 7.469 kB / 366.4 MB, free: 47.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.2035, allocations: 0.875 kB / 366.4 MB, free: 47.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.2035, allocations: 0 / 366.4 MB, free: 47.57 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001661/0.2052, allocations: 2.128 MB / 368.5 MB, free: 45.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.301e-05/0.2052, allocations: 71.98 kB / 368.6 MB, free: 45.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002398/0.2054, allocations: 87.94 kB / 368.7 MB, free: 45.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.2055, allocations: 3.047 kB / 368.7 MB, free: 45.63 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.2055, allocations: 28 kB / 368.7 MB, free: 45.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.2055, allocations: 4 kB / 368.7 MB, free: 45.6 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.2055, allocations: 0 / 368.7 MB, free: 45.6 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007451/0.2062, allocations: 1.047 MB / 369.8 MB, free: 44.53 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003722/0.2066, allocations: 432.9 kB / 370.2 MB, free: 44.11 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.2068, allocations: 11.98 kB / 370.2 MB, free: 44.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003432/0.2071, allocations: 23.98 kB / 370.2 MB, free: 44.07 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.788e-05/0.2072, allocations: 59.92 kB / 370.3 MB, free: 44.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.307e-05/0.2073, allocations: 36 kB / 370.3 MB, free: 43.98 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009271/0.2082, allocations: 1.622 MB / 371.9 MB, free: 42.54 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.2082, allocations: 0 / 371.9 MB, free: 42.54 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001114/0.2093, allocations: 0.5814 MB / 372.5 MB, free: 41.96 MB / 314.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.0009328/0.2102, allocations: 0.9288 MB / 373.4 MB, free: 41.19 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005811/0.2108, allocations: 0.5842 MB / 374 MB, free: 40.62 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2108, allocations: 0 / 374 MB, free: 40.62 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002265/0.211, allocations: 337 kB / 374.4 MB, free: 40.28 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/0.2124, allocations: 0.6415 MB / 375 MB, free: 39.65 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003441/0.2159, allocations: 4.118 MB / 379.1 MB, free: 35.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002235/0.2161, allocations: 383.9 kB / 379.5 MB, free: 35.09 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006295/0.2167, allocations: 361.1 kB / 379.8 MB, free: 34.73 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007212/0.2175, allocations: 0.701 MB / 380.5 MB, free: 34.02 MB / 314.7 MB Notification: Performance of SimCode: time 2.144e-06/0.2175, allocations: 0 / 380.5 MB, free: 34.02 MB / 314.7 MB Notification: Performance of Templates: time 0.03925/0.2567, allocations: 37.76 MB / 418.3 MB, free: 12.93 MB / 330.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.6738546658307314]