Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001208/0.001208, allocations: 81.81 kB / 21.42 MB, free: 3.066 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001098, allocations: 163.1 kB / 24.82 MB, free: 9.266 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.005/1.005, allocations: 177 MB / 205.1 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.774e-06/1.774e-06, allocations: 0 / 273.3 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.925e-05/2.102e-05, allocations: 6.312 kB / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01139/0.01141, allocations: 13.7 MB / 287 MB, free: 3.469 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1264/0.1379, allocations: 19.41 MB / 306.4 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001348/0.1392, allocations: 133.5 kB / 306.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002147/0.1413, allocations: 1.151 MB / 307.7 MB, free: 9.637 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004875/0.1462, allocations: 2.428 MB / 310.1 MB, free: 8.172 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002979/0.1492, allocations: 1.444 MB / 311.6 MB, free: 7.172 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00526/0.1545, allocations: 6.908 MB / 318.5 MB, free: 3.711 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004796/0.1549, allocations: 261.8 kB / 318.8 MB, free: 3.426 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002279/0.1572, allocations: 3.053 MB / 321.8 MB, free: 376 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006992/0.1579, allocations: 0.8213 MB / 322.6 MB, free: 15.54 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001439/0.1581, allocations: 72 kB / 322.7 MB, free: 15.47 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002276/0.1603, allocations: 1.21 MB / 323.9 MB, free: 14.26 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001818/0.1605, allocations: 333.6 kB / 324.2 MB, free: 13.93 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005872/0.1611, allocations: 0.7521 MB / 325 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002359/0.1635, allocations: 2.805 MB / 327.8 MB, free: 10.36 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1635, allocations: 3.938 kB / 327.8 MB, free: 10.36 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1635, allocations: 0 / 327.8 MB, free: 10.36 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.738e-05/0.1635, allocations: 4 kB / 327.8 MB, free: 10.36 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.003279/0.1668, allocations: 3.976 MB / 331.8 MB, free: 6.312 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.1668, allocations: 19.97 kB / 331.8 MB, free: 6.293 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003846/0.1672, allocations: 445.4 kB / 332.2 MB, free: 5.855 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001928/0.1692, allocations: 2.521 MB / 334.7 MB, free: 3.238 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/0.1692, allocations: 37 kB / 334.8 MB, free: 3.199 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.81e-05/0.1693, allocations: 51.95 kB / 334.8 MB, free: 3.148 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005217/0.1698, allocations: 492.7 kB / 335.3 MB, free: 2.656 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.1698, allocations: 0 / 335.3 MB, free: 2.656 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.12e-05/0.1698, allocations: 23.94 kB / 335.3 MB, free: 2.633 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.1699, allocations: 23.98 kB / 335.4 MB, free: 2.609 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006768/0.1705, allocations: 424.3 kB / 335.8 MB, free: 2.195 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002449/0.173, allocations: 2.338 MB / 338.1 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003119/0.1733, allocations: 289.2 kB / 338.4 MB, free: 15.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002996/0.1736, allocations: 373.7 kB / 338.8 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01439/0.188, allocations: 15.29 MB / 354 MB, free: 15.51 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002734/0.1883, allocations: 259.7 kB / 354.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.744e-06/0.1883, allocations: 0 / 354.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007555/0.189, allocations: 0.8075 MB / 355.1 MB, free: 14.42 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.189, allocations: 67.34 kB / 355.2 MB, free: 14.34 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002167/0.1912, allocations: 3.144 MB / 358.3 MB, free: 11.17 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.338e-05/0.1912, allocations: 29.7 kB / 358.3 MB, free: 11.14 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009387/0.1922, allocations: 1.692 MB / 360 MB, free: 9.434 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.1923, allocations: 174.5 kB / 360.2 MB, free: 9.262 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001789/0.1925, allocations: 243.9 kB / 360.4 MB, free: 9.016 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1926, allocations: 0.512 MB / 361 MB, free: 8.496 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.1927, allocations: 105.9 kB / 361.1 MB, free: 8.391 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003322/0.193, allocations: 0.6275 MB / 361.7 MB, free: 7.527 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005198/0.1936, allocations: 0.8148 MB / 362.5 MB, free: 6.473 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.1936, allocations: 4 kB / 362.5 MB, free: 6.469 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.000805/0.1944, allocations: 1.025 MB / 363.5 MB, free: 5.445 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.1944, allocations: 8 kB / 363.5 MB, free: 5.438 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.033e-05/0.1945, allocations: 80 kB / 363.6 MB, free: 5.359 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.1945, allocations: 20 kB / 363.6 MB, free: 5.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004424/0.1949, allocations: 208.2 kB / 363.8 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.404e-05/0.1949, allocations: 31.86 kB / 363.9 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004196/0.1953, allocations: 107.2 kB / 364 MB, free: 5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.5e-05/0.1954, allocations: 56 kB / 364 MB, free: 4.945 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.0002773/0.1957, allocations: 216.2 kB / 364.2 MB, free: 4.723 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002363/0.1959, allocations: 409.5 kB / 364.6 MB, free: 4.32 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00111/0.197, allocations: 0.9939 MB / 365.6 MB, free: 3.316 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.197, allocations: 4 kB / 365.6 MB, free: 3.312 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.197, allocations: 0 / 365.6 MB, free: 3.312 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1971, allocations: 7.938 kB / 365.7 MB, free: 3.305 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001729/0.1988, allocations: 2.119 MB / 367.8 MB, free: 1.125 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.868e-05/0.1988, allocations: 75.98 kB / 367.8 MB, free: 1.051 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002083/0.199, allocations: 83.88 kB / 367.9 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.199, allocations: 4 kB / 367.9 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.117e-05/0.1991, allocations: 28 kB / 368 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.1991, allocations: 4 kB / 368 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1991, allocations: 11.94 kB / 368 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007643/0.1998, allocations: 1.031 MB / 369 MB, free: 15.85 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003719/0.2002, allocations: 435.2 kB / 369.4 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001405/0.2004, allocations: 11.98 kB / 369.4 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003134/0.2007, allocations: 23.92 kB / 369.5 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.607e-05/0.2008, allocations: 63.92 kB / 369.5 MB, free: 15.33 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.825e-05/0.2008, allocations: 32 kB / 369.6 MB, free: 15.3 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00115/0.202, allocations: 1.621 MB / 371.2 MB, free: 13.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.202, allocations: 0 / 371.2 MB, free: 13.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000774/0.2027, allocations: 0.5892 MB / 371.8 MB, free: 13.09 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.0008291/0.2036, allocations: 0.9225 MB / 372.7 MB, free: 12.16 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005012/0.2041, allocations: 0.5863 MB / 373.3 MB, free: 11.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2041, allocations: 0 / 373.3 MB, free: 11.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002363/0.2043, allocations: 331.7 kB / 373.6 MB, free: 11.2 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001296/0.2056, allocations: 0.6332 MB / 374.2 MB, free: 10.56 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003388/0.209, allocations: 4.129 MB / 378.4 MB, free: 6.363 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002299/0.2092, allocations: 387.9 kB / 378.7 MB, free: 5.965 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005519/0.2098, allocations: 357.1 kB / 379.1 MB, free: 5.609 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007878/0.2105, allocations: 0.701 MB / 379.8 MB, free: 4.906 MB / 330.7 MB Notification: Performance of SimCode: time 8.92e-07/0.2105, allocations: 0 / 379.8 MB, free: 4.906 MB / 330.7 MB Notification: Performance of Templates: time 0.04146/0.252, allocations: 37.55 MB / 417.3 MB, free: 15.86 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.286948102992028]