Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.001087/0.001087, allocations: 75.77 kB / 21.18 MB, free: 3.379 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.001119/0.001119, allocations: 161 kB / 24.56 MB, free: 8 kB / 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.985/0.985, allocations: 177.1 MB / 205 MB, free: 5.617 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.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.1.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.1.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.801e-05/3.006e-05, allocations: 2.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1456/0.1456, allocations: 25.38 MB / 298.4 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02475/0.1703, allocations: 21.45 MB / 319.8 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005531/0.1759, allocations: 265.7 kB / 320.1 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003979/0.1798, allocations: 1.685 MB / 321.7 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01011/0.19, allocations: 3.435 MB / 325.2 MB, free: 12.45 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004791/0.1947, allocations: 1.626 MB / 326.8 MB, free: 11.19 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0151/0.2098, allocations: 13.49 MB / 340.3 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001307/0.2112, allocations: 0.4887 MB / 340.8 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003985/0.2151, allocations: 2.988 MB / 343.8 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002119/0.2173, allocations: 1.506 MB / 345.3 MB, free: 8.914 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005/0.2178, allocations: 132 kB / 345.4 MB, free: 8.785 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003521/0.2213, allocations: 1.272 MB / 346.7 MB, free: 7.512 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003829/0.2217, allocations: 0.6048 MB / 347.3 MB, free: 6.902 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001643/0.2233, allocations: 1.402 MB / 348.7 MB, free: 5.496 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006312/0.2296, allocations: 4.652 MB / 353.3 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.2296, allocations: 0 / 353.3 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2296, allocations: 0 / 353.3 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002171/0.2298, allocations: 3.938 kB / 353.3 MB, free: 0.8164 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.008412/0.2383, allocations: 7.145 MB / 360.5 MB, free: 9.582 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.2383, allocations: 8.031 kB / 360.5 MB, free: 9.574 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009005/0.2392, allocations: 0.8506 MB / 361.3 MB, free: 8.719 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005908/0.2451, allocations: 4.964 MB / 366.3 MB, free: 3.637 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.614e-05/0.2452, allocations: 69.98 kB / 366.4 MB, free: 3.566 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001983/0.2454, allocations: 99.91 kB / 366.5 MB, free: 3.469 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.2469, allocations: 0.9463 MB / 367.4 MB, free: 2.504 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.2469, allocations: 0 / 367.4 MB, free: 2.504 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/0.247, allocations: 35.94 kB / 367.5 MB, free: 2.469 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.819e-05/0.2471, allocations: 39.97 kB / 367.5 MB, free: 2.43 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00152/0.2486, allocations: 0.9181 MB / 368.4 MB, free: 1.508 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008163/0.2567, allocations: 5.314 MB / 373.7 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009051/0.2576, allocations: 0.565 MB / 374.3 MB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001005/0.2586, allocations: 0.8057 MB / 375.1 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03775/0.2964, allocations: 30 MB / 405.1 MB, free: 12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005601/0.297, allocations: 443.8 kB / 405.5 MB, free: 11.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 3.066e-06/0.297, allocations: 0 / 405.5 MB, free: 11.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.001981/0.2989, allocations: 1.572 MB / 407.1 MB, free: 9.969 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.299, allocations: 75.98 kB / 407.2 MB, free: 9.883 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005065/0.3041, allocations: 6.001 MB / 413.2 MB, free: 3.895 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.4e-05/0.3041, allocations: 37.7 kB / 413.2 MB, free: 3.852 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002183/0.3063, allocations: 3.255 MB / 416.5 MB, free: 0.582 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002235/0.3065, allocations: 313.4 kB / 416.8 MB, free: 280 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003606/0.3069, allocations: 436.7 kB / 417.2 MB, free: 15.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.307, allocations: 480.7 kB / 417.7 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003771/0.3074, allocations: 239.9 kB / 417.9 MB, free: 15.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007648/0.3081, allocations: 1.245 MB / 419.2 MB, free: 13.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001241/0.3094, allocations: 1.615 MB / 420.8 MB, free: 11.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.026e-05/0.3094, allocations: 8 kB / 420.8 MB, free: 11.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002319/0.3117, allocations: 2.007 MB / 422.8 MB, free: 9.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.043e-05/0.3117, allocations: 16 kB / 422.8 MB, free: 9.324 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001447/0.3119, allocations: 160 kB / 423 MB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.944e-05/0.3119, allocations: 35.98 kB / 423 MB, free: 9.133 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006849/0.3126, allocations: 359.7 kB / 423.3 MB, free: 8.781 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.225e-05/0.3126, allocations: 55.78 kB / 423.4 MB, free: 8.727 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/0.3137, allocations: 186.6 kB / 423.6 MB, free: 8.543 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001363/0.3139, allocations: 124 kB / 423.7 MB, free: 8.422 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.0005503/0.3144, allocations: 268.7 kB / 424 MB, free: 8.148 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004953/0.3149, allocations: 0.7726 MB / 424.7 MB, free: 7.371 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002331/0.3173, allocations: 1.905 MB / 426.6 MB, free: 5.469 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.779e-06/0.3173, allocations: 8 kB / 426.7 MB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3173, allocations: 0 / 426.7 MB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.3173, allocations: 7.984 kB / 426.7 MB, free: 5.453 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00374/0.321, allocations: 3.701 MB / 430.4 MB, free: 1.688 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001189/0.3211, allocations: 140 kB / 430.5 MB, free: 1.551 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004026/0.3215, allocations: 139.9 kB / 430.6 MB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.411e-06/0.3215, allocations: 4 kB / 430.6 MB, free: 1.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.503e-05/0.3216, allocations: 63.98 kB / 430.7 MB, free: 1.348 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.3216, allocations: 4 kB / 430.7 MB, free: 1.344 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.3216, allocations: 3.938 kB / 430.7 MB, free: 1.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1359/0.4576, allocations: 1.836 MB / 432.5 MB, free: 110.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00155/0.4591, allocations: 0.8146 MB / 433.4 MB, free: 110.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004918/0.4596, allocations: 18.39 kB / 433.4 MB, free: 110.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006611/0.4603, allocations: 25 kB / 433.4 MB, free: 110.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/0.4604, allocations: 106 kB / 433.5 MB, free: 110.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.4605, allocations: 64.67 kB / 433.6 MB, free: 110.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004178/0.4647, allocations: 3.229 MB / 436.8 MB, free: 110.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4647, allocations: 0 / 436.8 MB, free: 110.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002512/0.4672, allocations: 1.089 MB / 437.9 MB, free: 110.3 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.001688/0.4689, allocations: 1.293 MB / 439.2 MB, free: 110.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001653/0.4706, allocations: 1.159 MB / 440.3 MB, free: 110 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.4706, allocations: 3.031 kB / 440.3 MB, free: 110 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005728/0.4712, allocations: 0.6337 MB / 441 MB, free: 109.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003762/0.4749, allocations: 1.237 MB / 442.2 MB, free: 109.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007501/0.4824, allocations: 7.782 MB / 450 MB, free: 105.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004465/0.4829, allocations: 0.6976 MB / 450.7 MB, free: 105.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001754/0.4846, allocations: 0.6757 MB / 451.4 MB, free: 105.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003286/0.4849, allocations: 283.3 kB / 451.6 MB, free: 105.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.393e-06/0.4849, allocations: 4 kB / 451.6 MB, free: 105.5 MB / 378.7 MB Notification: Performance of Templates: time 0.0679/0.5528, allocations: 57.94 MB / 0.4976 GB, free: 51.37 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.447283476125449]