Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001088/0.001088, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001689/0.002777, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001097/0.001097, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001517/0.002614, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9818/0.9818, allocations: 177.2 MB / 189.8 MB, free: 5.258 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08657/1.068, allocations: 53.65 MB / 243.4 MB, free: 15.52 MB / 250.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.InvertersExtendedModel,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.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.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.019e-05/2.177e-05, allocations: 6.25 kB / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01107/0.0111, allocations: 14.35 MB / 259.1 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1377/0.1488, allocations: 19.99 MB / 279 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001852/0.1507, allocations: 135.3 kB / 279.2 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004696/0.1554, allocations: 1.205 MB / 280.4 MB, free: 492 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005065/0.1604, allocations: 2.438 MB / 282.8 MB, free: 15.98 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003229/0.1637, allocations: 1.409 MB / 284.2 MB, free: 15.76 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006431/0.1701, allocations: 6.854 MB / 291.1 MB, free: 14.38 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005004/0.1706, allocations: 306.1 kB / 291.4 MB, free: 14.22 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003127/0.1737, allocations: 3.596 MB / 295 MB, free: 13.63 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009527/0.1747, allocations: 0.8488 MB / 295.8 MB, free: 13.46 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001838/0.1749, allocations: 74.38 kB / 295.9 MB, free: 13.46 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00251/0.1774, allocations: 1.267 MB / 297.2 MB, free: 13.26 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001804/0.1776, allocations: 283.1 kB / 297.4 MB, free: 13.11 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006076/0.1782, allocations: 0.7047 MB / 298.1 MB, free: 12.74 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002389/0.1806, allocations: 2.689 MB / 300.8 MB, free: 10.54 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.186e-05/0.1806, allocations: 0 / 300.8 MB, free: 10.54 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1806, allocations: 4 kB / 300.8 MB, free: 10.53 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.655e-05/0.1806, allocations: 3.938 kB / 300.8 MB, free: 10.53 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.003423/0.1841, allocations: 4.541 MB / 305.4 MB, free: 6.25 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.818e-05/0.1841, allocations: 12.03 kB / 305.4 MB, free: 6.238 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002786/0.1844, allocations: 287.6 kB / 305.7 MB, free: 5.957 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00191/0.1863, allocations: 2.124 MB / 307.8 MB, free: 3.816 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.394e-05/0.1863, allocations: 32.94 kB / 307.8 MB, free: 3.781 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.582e-05/0.1864, allocations: 52 kB / 307.9 MB, free: 3.73 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005054/0.1869, allocations: 463.5 kB / 308.3 MB, free: 3.266 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.1869, allocations: 0 / 308.3 MB, free: 3.266 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.894e-05/0.1869, allocations: 24 kB / 308.4 MB, free: 3.242 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.1869, allocations: 26.88 kB / 308.4 MB, free: 3.219 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003306/0.1873, allocations: 220.5 kB / 308.6 MB, free: 3.004 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002075/0.1893, allocations: 1.58 MB / 310.2 MB, free: 1.441 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002811/0.1896, allocations: 280.5 kB / 310.4 MB, free: 1.164 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000259/0.1899, allocations: 327.4 kB / 310.8 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02266/0.2126, allocations: 22.96 MB / 333.7 MB, free: 9.199 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002765/0.2128, allocations: 213.8 kB / 333.9 MB, free: 8.984 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.034e-06/0.2128, allocations: 0 / 333.9 MB, free: 8.984 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005621/0.2134, allocations: 493.9 kB / 334.4 MB, free: 8.5 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.228e-05/0.2134, allocations: 55.41 kB / 334.5 MB, free: 8.434 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001576/0.215, allocations: 2.797 MB / 337.3 MB, free: 6.215 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.739e-05/0.215, allocations: 33.7 kB / 337.3 MB, free: 6.176 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003831/0.2154, allocations: 0.7826 MB / 338.1 MB, free: 5.562 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.2155, allocations: 171 kB / 338.3 MB, free: 5.406 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001564/0.2157, allocations: 196.2 kB / 338.4 MB, free: 5.227 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.779e-05/0.2158, allocations: 350.4 kB / 338.8 MB, free: 4.895 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.93e-05/0.2159, allocations: 73.97 kB / 338.9 MB, free: 4.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002541/0.2161, allocations: 463.3 kB / 339.3 MB, free: 4.219 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000465/0.2166, allocations: 0.6487 MB / 340 MB, free: 3.418 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.2166, allocations: 5.312 kB / 340 MB, free: 3.414 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0006541/0.2172, allocations: 0.7034 MB / 340.7 MB, free: 2.711 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.2173, allocations: 12.03 kB / 340.7 MB, free: 2.699 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.088e-05/0.2173, allocations: 24 kB / 340.7 MB, free: 2.676 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.2173, allocations: 16 kB / 340.7 MB, free: 2.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004284/0.2178, allocations: 231.6 kB / 340.9 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/0.2178, allocations: 23.92 kB / 341 MB, free: 2.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004611/0.2182, allocations: 107.3 kB / 341.1 MB, free: 2.305 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.478e-05/0.2183, allocations: 43.94 kB / 341.1 MB, free: 2.262 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.00026/0.2186, allocations: 174.3 kB / 341.3 MB, free: 2.082 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000181/0.2187, allocations: 251.7 kB / 341.5 MB, free: 1.836 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009833/0.2197, allocations: 0.7977 MB / 342.3 MB, free: 1.035 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.2197, allocations: 4 kB / 342.3 MB, free: 1.031 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.2197, allocations: 0 / 342.3 MB, free: 1.031 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.2197, allocations: 5.672 kB / 342.3 MB, free: 1.027 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001289/0.221, allocations: 1.61 MB / 344 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.561e-05/0.2211, allocations: 8 kB / 344 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002492/0.2213, allocations: 103.9 kB / 344.1 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003513/0.2217, allocations: 405.1 kB / 344.5 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.2217, allocations: 4 kB / 344.5 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.776e-05/0.2217, allocations: 19.98 kB / 344.5 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2217, allocations: 7.938 kB / 344.5 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2217, allocations: 0 / 344.5 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005862/0.2223, allocations: 0.6402 MB / 345.1 MB, free: 14.6 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/0.2224, allocations: 12 kB / 345.1 MB, free: 14.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003208/0.2228, allocations: 23.92 kB / 345.2 MB, free: 14.56 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.95e-05/0.2228, allocations: 44.73 kB / 345.2 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.163e-05/0.2229, allocations: 15.98 kB / 345.2 MB, free: 14.5 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008908/0.2238, allocations: 1.488 MB / 346.7 MB, free: 13.21 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2238, allocations: 4.031 kB / 346.7 MB, free: 13.2 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008074/0.2246, allocations: 0.6047 MB / 347.3 MB, free: 12.6 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.0008948/0.2255, allocations: 0.9249 MB / 348.2 MB, free: 11.81 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004547/0.2259, allocations: 477.2 kB / 348.7 MB, free: 11.34 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.83e-05/0.226, allocations: 48.44 kB / 348.8 MB, free: 11.29 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002343/0.2262, allocations: 261.7 kB / 349 MB, free: 11.01 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003071/0.2293, allocations: 6.594 MB / 355.6 MB, free: 3.145 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006629/0.2359, allocations: 4.206 MB / 359.8 MB, free: 14.89 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.2362, allocations: 399.2 kB / 360.2 MB, free: 14.48 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006302/0.2368, allocations: 361.4 kB / 360.6 MB, free: 14.12 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008099/0.2376, allocations: 0.5956 MB / 361.2 MB, free: 13.52 MB / 346.7 MB Notification: Performance of SimCode: time 1.252e-06/0.2376, allocations: 4 kB / 361.2 MB, free: 13.52 MB / 346.7 MB Notification: Performance of Templates: time 0.04262/0.2802, allocations: 39.54 MB / 400.7 MB, free: 6.57 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.42145630158484]