Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.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: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001646/0.002754, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001102/0.001102, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001754/0.002856, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.9317/0.9317, allocations: 173.4 MB / 185.8 MB, free: 9 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08453/1.016, allocations: 52.5 MB / 238.3 MB, free: 4.438 MB / 234.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.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 239.5 MB, free: 3.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.125e-05/1.268e-05, allocations: 2.312 kB / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01858/0.01859, allocations: 24.83 MB / 264.4 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1277/0.1462, allocations: 21.71 MB / 286.1 MB, free: 408 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002464/0.1487, allocations: 267.6 kB / 286.3 MB, free: 408 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002556/0.1513, allocations: 1.748 MB / 288.1 MB, free: 15.74 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006048/0.1573, allocations: 3.399 MB / 291.5 MB, free: 14.34 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003629/0.1609, allocations: 1.591 MB / 293.1 MB, free: 13.93 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01118/0.1721, allocations: 12.97 MB / 306 MB, free: 9.309 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009159/0.173, allocations: 0.5481 MB / 306.6 MB, free: 8.723 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006014/0.179, allocations: 6.693 MB / 313.3 MB, free: 2.043 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001506/0.1806, allocations: 1.563 MB / 314.9 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002941/0.1808, allocations: 132 kB / 315 MB, free: 388 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00303/0.1839, allocations: 1.328 MB / 316.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003344/0.1842, allocations: 0.4919 MB / 316.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001325/0.1855, allocations: 1.297 MB / 318.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003295/0.1888, allocations: 4.384 MB / 322.5 MB, free: 9.258 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.436e-05/0.1888, allocations: 0 / 322.5 MB, free: 9.258 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1888, allocations: 0 / 322.5 MB, free: 9.258 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001358/0.189, allocations: 0 / 322.5 MB, free: 9.258 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.005577/0.1946, allocations: 8.013 MB / 330.5 MB, free: 1.543 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.1946, allocations: 12.03 kB / 330.5 MB, free: 1.531 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003958/0.195, allocations: 0.5266 MB / 331 MB, free: 1.004 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003542/0.1985, allocations: 3.912 MB / 334.9 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.694e-05/0.1986, allocations: 69.94 kB / 335 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/0.1987, allocations: 103 kB / 335.1 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007937/0.1995, allocations: 0.7813 MB / 335.9 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.1995, allocations: 0 / 335.9 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.383e-05/0.1996, allocations: 43.98 kB / 335.9 MB, free: 12.1 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.232e-05/0.1996, allocations: 35.98 kB / 336 MB, free: 12.06 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007695/0.2004, allocations: 427.1 kB / 336.4 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003535/0.2039, allocations: 2.9 MB / 339.3 MB, free: 8.797 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00044/0.2043, allocations: 483.8 kB / 339.8 MB, free: 8.324 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004761/0.2048, allocations: 0.6301 MB / 340.4 MB, free: 7.707 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04403/0.2488, allocations: 45.34 MB / 385.7 MB, free: 8.996 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003498/0.2492, allocations: 331.7 kB / 386.1 MB, free: 8.676 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 1.963e-06/0.2492, allocations: 0 / 386.1 MB, free: 8.676 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.0009153/0.2501, allocations: 0.853 MB / 386.9 MB, free: 7.824 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002089/0.2522, allocations: 60.06 kB / 387 MB, free: 7.754 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006235/0.2584, allocations: 5.065 MB / 392 MB, free: 3.781 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001844/0.2586, allocations: 45.64 kB / 392.1 MB, free: 3.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001244/0.2599, allocations: 1.389 MB / 393.5 MB, free: 2.656 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003951/0.2603, allocations: 312.5 kB / 393.8 MB, free: 2.371 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004846/0.2607, allocations: 338.8 kB / 394.1 MB, free: 2.066 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.578e-05/0.2608, allocations: 309.1 kB / 394.4 MB, free: 1.762 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003367/0.2612, allocations: 139.9 kB / 394.5 MB, free: 1.625 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007429/0.2619, allocations: 0.8475 MB / 395.4 MB, free: 500 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001367/0.2633, allocations: 1.158 MB / 396.5 MB, free: 15.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.72e-05/0.2633, allocations: 8 kB / 396.6 MB, free: 15.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002491/0.2658, allocations: 1.29 MB / 397.8 MB, free: 13.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.521e-05/0.2658, allocations: 16.06 kB / 397.9 MB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000158/0.266, allocations: 49.23 kB / 397.9 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.53e-05/0.266, allocations: 32 kB / 397.9 MB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.2673, allocations: 418.2 kB / 398.3 MB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-05/0.2673, allocations: 47.8 kB / 398.4 MB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002293/0.2696, allocations: 178.7 kB / 398.6 MB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000228/0.2698, allocations: 79.98 kB / 398.6 MB, free: 12.94 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0009228/0.2707, allocations: 221.1 kB / 398.9 MB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008766/0.2716, allocations: 479.3 kB / 399.3 MB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003231/0.2748, allocations: 1.469 MB / 400.8 MB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/0.2749, allocations: 11.94 kB / 400.8 MB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.2749, allocations: 0 / 400.8 MB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.2749, allocations: 3.984 kB / 400.8 MB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004476/0.2793, allocations: 2.769 MB / 403.6 MB, free: 8.699 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001205/0.2795, allocations: 23.98 kB / 403.6 MB, free: 8.676 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007194/0.2802, allocations: 175.9 kB / 403.8 MB, free: 8.504 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001719/0.2819, allocations: 0.7313 MB / 404.5 MB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.016e-05/0.2819, allocations: 8 kB / 404.5 MB, free: 7.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.708e-05/0.282, allocations: 16 kB / 404.5 MB, free: 7.734 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.191e-06/0.282, allocations: 7.938 kB / 404.5 MB, free: 7.727 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.282, allocations: 4 kB / 404.5 MB, free: 7.723 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001779/0.2838, allocations: 1.061 MB / 405.6 MB, free: 6.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006994/0.2845, allocations: 16 kB / 405.6 MB, free: 6.645 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001052/0.2855, allocations: 27.97 kB / 405.7 MB, free: 6.617 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/0.2857, allocations: 60.5 kB / 405.7 MB, free: 6.559 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/0.2858, allocations: 19.98 kB / 405.7 MB, free: 6.539 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003041/0.2888, allocations: 2.724 MB / 408.5 MB, free: 4.188 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.2888, allocations: 4 kB / 408.5 MB, free: 4.184 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003021/0.2919, allocations: 1.089 MB / 409.5 MB, free: 3.094 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.002234/0.2941, allocations: 1.458 MB / 411 MB, free: 1.852 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001456/0.2956, allocations: 0.8492 MB / 411.9 MB, free: 0.9609 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001281/0.2957, allocations: 88.44 kB / 411.9 MB, free: 0.875 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005819/0.2963, allocations: 440.6 kB / 412.4 MB, free: 396 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004882/0.3011, allocations: 1.656 MB / 414 MB, free: 14.73 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01448/0.3156, allocations: 7.646 MB / 421.7 MB, free: 6.992 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005661/0.3162, allocations: 0.7026 MB / 422.4 MB, free: 6.27 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001544/0.3177, allocations: 0.6808 MB / 423.1 MB, free: 5.586 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001595/0.3193, allocations: 1.069 MB / 424.1 MB, free: 4.5 MB / 394.7 MB Notification: Performance of SimCode: time 1.934e-06/0.3193, allocations: 4 kB / 424.1 MB, free: 4.496 MB / 394.7 MB Notification: Performance of Templates: time 0.1886/0.5079, allocations: 68.78 MB / 492.9 MB, free: 81.25 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.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: 4.067646184936166]