Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.005/1.005, allocations: 173.4 MB / 201.1 MB, free: 9.348 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.701e-05/2.848e-05, allocations: 6.25 kB / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01164/0.01166, allocations: 14.64 MB / 282.6 MB, free: 7.758 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1565/0.1682, allocations: 19.82 MB / 302.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002562/0.1708, allocations: 137.5 kB / 302.6 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003139/0.1739, allocations: 1.177 MB / 303.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007278/0.1812, allocations: 2.475 MB / 306.2 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004496/0.1857, allocations: 1.446 MB / 307.7 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00732/0.193, allocations: 6.963 MB / 314.6 MB, free: 8.977 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006454/0.1936, allocations: 262.6 kB / 314.9 MB, free: 8.809 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001855/0.1955, allocations: 1.606 MB / 316.5 MB, free: 8.004 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008446/0.1963, allocations: 0.8218 MB / 317.3 MB, free: 7.664 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001296/0.1965, allocations: 79.16 kB / 317.4 MB, free: 7.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002802/0.1993, allocations: 1.206 MB / 318.6 MB, free: 6.645 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.1994, allocations: 337.5 kB / 318.9 MB, free: 6.312 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006659/0.2001, allocations: 0.767 MB / 319.7 MB, free: 5.543 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002509/0.2026, allocations: 2.86 MB / 322.6 MB, free: 2.672 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2026, allocations: 0 / 322.6 MB, free: 2.672 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2026, allocations: 0 / 322.6 MB, free: 2.672 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.805e-05/0.2026, allocations: 0 / 322.6 MB, free: 2.672 MB / 266.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.003/0.2056, allocations: 4.071 MB / 326.6 MB, free: 14.54 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.2057, allocations: 12.92 kB / 326.6 MB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000391/0.2061, allocations: 477.2 kB / 327.1 MB, free: 14.05 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002292/0.2083, allocations: 2.645 MB / 329.7 MB, free: 11.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.2084, allocations: 37 kB / 329.8 MB, free: 11.28 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.442e-05/0.2085, allocations: 55.95 kB / 329.8 MB, free: 11.22 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007233/0.2092, allocations: 0.5319 MB / 330.4 MB, free: 10.68 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.2092, allocations: 0 / 330.4 MB, free: 10.68 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.615e-05/0.2092, allocations: 20 kB / 330.4 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.412e-05/0.2093, allocations: 27.92 kB / 330.4 MB, free: 10.63 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005949/0.2099, allocations: 486.4 kB / 330.9 MB, free: 10.16 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003549/0.2134, allocations: 2.922 MB / 333.8 MB, free: 7.18 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004762/0.2139, allocations: 329.3 kB / 334.1 MB, free: 6.848 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004367/0.2143, allocations: 421.8 kB / 334.5 MB, free: 6.43 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01583/0.2302, allocations: 15.21 MB / 349.8 MB, free: 6.832 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000344/0.2305, allocations: 271.8 kB / 350 MB, free: 6.555 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.565e-06/0.2305, allocations: 0 / 350 MB, free: 6.555 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009896/0.2315, allocations: 0.8815 MB / 350.9 MB, free: 5.664 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.956e-05/0.2315, allocations: 67.33 kB / 351 MB, free: 5.586 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002618/0.2342, allocations: 3.331 MB / 354.3 MB, free: 2.242 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.525e-05/0.2342, allocations: 33.7 kB / 354.3 MB, free: 2.203 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001521/0.2357, allocations: 1.765 MB / 356.1 MB, free: 436 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.2359, allocations: 178.6 kB / 356.3 MB, free: 256 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002438/0.2361, allocations: 236 kB / 356.5 MB, free: 12 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.2363, allocations: 0.516 MB / 357 MB, free: 15.49 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002104/0.2365, allocations: 129.9 kB / 357.1 MB, free: 15.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004978/0.237, allocations: 0.6471 MB / 357.8 MB, free: 14.47 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007326/0.2377, allocations: 0.85 MB / 358.6 MB, free: 13.38 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.2377, allocations: 4 kB / 358.6 MB, free: 13.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001236/0.2389, allocations: 1.096 MB / 359.7 MB, free: 12.28 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.003e-05/0.239, allocations: 12 kB / 359.8 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.413e-05/0.2391, allocations: 80 kB / 359.8 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.347e-05/0.2391, allocations: 20 kB / 359.9 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004515/0.2395, allocations: 203.6 kB / 360.1 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.079e-05/0.2396, allocations: 23.92 kB / 360.1 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005783/0.2401, allocations: 104 kB / 360.2 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.401e-05/0.2402, allocations: 64 kB / 360.2 MB, free: 11.78 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.0003326/0.2406, allocations: 216.2 kB / 360.4 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002841/0.2408, allocations: 441.3 kB / 360.9 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001697/0.2425, allocations: 1.043 MB / 361.9 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.2426, allocations: 4 kB / 361.9 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.2426, allocations: 0 / 361.9 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.2426, allocations: 7.922 kB / 361.9 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002215/0.2448, allocations: 2.139 MB / 364.1 MB, free: 7.875 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.178e-05/0.2448, allocations: 71.94 kB / 364.1 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002453/0.2451, allocations: 87.98 kB / 364.2 MB, free: 7.719 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.521e-06/0.2451, allocations: 4 kB / 364.2 MB, free: 7.715 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.834e-05/0.2451, allocations: 28 kB / 364.3 MB, free: 7.688 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.2451, allocations: 7.875 kB / 364.3 MB, free: 7.68 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.2451, allocations: 4 kB / 364.3 MB, free: 7.676 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.2462, allocations: 1.108 MB / 365.4 MB, free: 6.539 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004507/0.2467, allocations: 451 kB / 365.8 MB, free: 6.098 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001556/0.2468, allocations: 15.98 kB / 365.8 MB, free: 6.082 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003218/0.2471, allocations: 27.95 kB / 365.9 MB, free: 6.055 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.2473, allocations: 55.94 kB / 365.9 MB, free: 6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.315e-05/0.2473, allocations: 39.98 kB / 366 MB, free: 5.961 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001621/0.2489, allocations: 1.819 MB / 367.8 MB, free: 4.148 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2489, allocations: 3.938 kB / 367.8 MB, free: 4.145 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001045/0.25, allocations: 0.6008 MB / 368.4 MB, free: 3.543 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.001151/0.2511, allocations: 0.8276 MB / 369.2 MB, free: 2.703 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007125/0.2518, allocations: 0.6167 MB / 369.8 MB, free: 2.059 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2518, allocations: 0 / 369.8 MB, free: 2.059 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002984/0.2521, allocations: 352 kB / 370.2 MB, free: 1.68 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00153/0.2537, allocations: 0.6729 MB / 370.8 MB, free: 1.012 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004344/0.258, allocations: 4.315 MB / 375.2 MB, free: 12.62 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.2583, allocations: 398.4 kB / 375.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000999/0.2593, allocations: 365.2 kB / 375.9 MB, free: 11.85 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001626/0.2594, allocations: 148.5 kB / 376 MB, free: 11.71 MB / 330.7 MB Notification: Performance of SimCode: time 1.403e-06/0.2594, allocations: 0 / 376 MB, free: 11.71 MB / 330.7 MB Notification: Performance of Templates: time 0.04305/0.3025, allocations: 33.39 MB / 409.4 MB, free: 10.86 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.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.906923582777381]