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.001077/0.001077, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001591/0.002668, allocations: 445.8 kB / 10.44 MB, free: 256 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.000955/0.000955, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001281/0.002236, allocations: 475.6 kB / 11.8 MB, free: 2.367 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.8196/0.8196, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1359/0.9554, allocations: 52.49 MB / 238.5 MB, free: 7.629 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.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.664e-06/1.664e-06, allocations: 0 / 239.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.848e-05/2.014e-05, allocations: 6.312 kB / 239.7 MB, free: 6.363 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01391/0.01393, allocations: 14.33 MB / 254.1 MB, free: 7.984 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02587/0.0398, allocations: 19.96 MB / 274 MB, free: 3.977 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002732/0.04253, allocations: 134.6 kB / 274.2 MB, free: 3.844 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003259/0.04579, allocations: 1.208 MB / 275.4 MB, free: 2.629 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009763/0.05555, allocations: 2.437 MB / 277.8 MB, free: 176 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005151/0.0607, allocations: 1.403 MB / 279.2 MB, free: 14.76 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01074/0.07145, allocations: 6.766 MB / 286 MB, free: 7.969 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008548/0.0723, allocations: 310.9 kB / 286.3 MB, free: 7.625 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005316/0.07762, allocations: 3.512 MB / 289.8 MB, free: 4.027 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001532/0.07915, allocations: 0.8524 MB / 290.6 MB, free: 3.172 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002231/0.07937, allocations: 72 kB / 290.7 MB, free: 3.102 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004237/0.08361, allocations: 1.26 MB / 292 MB, free: 1.84 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003309/0.08394, allocations: 281.6 kB / 292.3 MB, free: 1.562 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001323/0.08526, allocations: 0.7009 MB / 293 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004088/0.08935, allocations: 2.7 MB / 295.7 MB, free: 14.15 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.457e-05/0.08937, allocations: 0 / 295.7 MB, free: 14.15 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.08937, allocations: 0 / 295.7 MB, free: 14.15 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.491e-05/0.08942, allocations: 0 / 295.7 MB, free: 14.15 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004509/0.09393, allocations: 4.545 MB / 300.2 MB, free: 9.531 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.09396, allocations: 8.031 kB / 300.2 MB, free: 9.523 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002736/0.09424, allocations: 295.6 kB / 300.5 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001862/0.0961, allocations: 2.116 MB / 302.6 MB, free: 7.004 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.09612, allocations: 41 kB / 302.7 MB, free: 6.965 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.018e-05/0.0962, allocations: 55.92 kB / 302.7 MB, free: 6.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000517/0.09672, allocations: 463.5 kB / 303.2 MB, free: 6.449 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.09673, allocations: 0 / 303.2 MB, free: 6.449 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.016e-05/0.09677, allocations: 20 kB / 303.2 MB, free: 6.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.09679, allocations: 19.98 kB / 303.2 MB, free: 6.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003294/0.09712, allocations: 228.5 kB / 303.4 MB, free: 6.184 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.09912, allocations: 1.572 MB / 305 MB, free: 4.582 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002859/0.0994, allocations: 280.9 kB / 305.3 MB, free: 4.297 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002622/0.09967, allocations: 326.9 kB / 305.6 MB, free: 3.977 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1209/0.2205, allocations: 22.92 MB / 328.5 MB, free: 46.3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002805/0.2208, allocations: 216.2 kB / 328.7 MB, free: 46.26 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.824e-06/0.2208, allocations: 1.125 kB / 328.7 MB, free: 46.26 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005097/0.2213, allocations: 489.1 kB / 329.2 MB, free: 46.23 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/0.2214, allocations: 62.69 kB / 329.3 MB, free: 46.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001478/0.2228, allocations: 2.799 MB / 332.1 MB, free: 45.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.974e-05/0.2229, allocations: 36.7 kB / 332.1 MB, free: 45.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002956/0.2232, allocations: 0.7794 MB / 332.9 MB, free: 45.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.681e-05/0.2232, allocations: 177.4 kB / 333.1 MB, free: 45.73 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.2234, allocations: 189.2 kB / 333.2 MB, free: 45.69 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.558e-05/0.2234, allocations: 349.4 kB / 333.6 MB, free: 45.38 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.559e-05/0.2235, allocations: 73.55 kB / 333.6 MB, free: 45.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.2236, allocations: 450.9 kB / 334.1 MB, free: 44.93 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003357/0.224, allocations: 0.663 MB / 334.8 MB, free: 44.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.224, allocations: 3.656 kB / 334.8 MB, free: 44.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0005134/0.2245, allocations: 0.7007 MB / 335.5 MB, free: 44.45 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.2245, allocations: 13.12 kB / 335.5 MB, free: 44.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.694e-05/0.2246, allocations: 27.09 kB / 335.5 MB, free: 44.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.2246, allocations: 14.75 kB / 335.5 MB, free: 44.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003884/0.225, allocations: 229.8 kB / 335.7 MB, free: 44.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.225, allocations: 32.31 kB / 335.8 MB, free: 44.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004182/0.2254, allocations: 102 kB / 335.9 MB, free: 44.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.329e-05/0.2254, allocations: 36.81 kB / 335.9 MB, free: 44.42 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.000225/0.2257, allocations: 181.2 kB / 336.1 MB, free: 44.3 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.2258, allocations: 253.1 kB / 336.3 MB, free: 44.3 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008638/0.2267, allocations: 0.7985 MB / 337.1 MB, free: 44.21 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.2267, allocations: 2.875 kB / 337.1 MB, free: 44.21 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-06/0.2267, allocations: 0 / 337.1 MB, free: 44.21 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.2267, allocations: 7.625 kB / 337.1 MB, free: 44.21 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.2278, allocations: 1.597 MB / 338.7 MB, free: 43.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.442e-05/0.2278, allocations: 17.31 kB / 338.7 MB, free: 43.95 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002331/0.228, allocations: 101.4 kB / 338.8 MB, free: 43.95 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002803/0.2283, allocations: 406.2 kB / 339.2 MB, free: 43.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.2283, allocations: 5.25 kB / 339.2 MB, free: 43.72 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/0.2283, allocations: 14.09 kB / 339.3 MB, free: 43.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.2283, allocations: 9.328 kB / 339.3 MB, free: 43.72 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2284, allocations: 1.25 kB / 339.3 MB, free: 43.72 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004796/0.2288, allocations: 0.65 MB / 339.9 MB, free: 43.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001464/0.229, allocations: 12.16 kB / 339.9 MB, free: 43.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000306/0.2293, allocations: 24.88 kB / 340 MB, free: 43.54 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.353e-05/0.2294, allocations: 53.52 kB / 340 MB, free: 43.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.2294, allocations: 14.7 kB / 340 MB, free: 43.54 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006725/0.2301, allocations: 1.488 MB / 341.5 MB, free: 43.4 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2301, allocations: 0 / 341.5 MB, free: 43.4 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006661/0.2307, allocations: 0.5965 MB / 342.1 MB, free: 43.39 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.0006911/0.2314, allocations: 0.9253 MB / 343 MB, free: 43.26 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003587/0.2318, allocations: 477.4 kB / 343.5 MB, free: 43.12 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-05/0.2318, allocations: 47.72 kB / 343.5 MB, free: 43.12 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001943/0.232, allocations: 264.7 kB / 343.8 MB, free: 42.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001915/0.2339, allocations: 6.592 MB / 350.4 MB, free: 36.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005595/0.2395, allocations: 4.2 MB / 354.6 MB, free: 33.6 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001853/0.2397, allocations: 401.1 kB / 355 MB, free: 33.32 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004642/0.2402, allocations: 360.2 kB / 355.3 MB, free: 33.05 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006606/0.2408, allocations: 0.5923 MB / 355.9 MB, free: 32.54 MB / 314.7 MB Notification: Performance of SimCode: time 6.62e-07/0.2408, allocations: 0 / 355.9 MB, free: 32.54 MB / 314.7 MB Notification: Performance of Templates: time 0.03431/0.2751, allocations: 39.49 MB / 395.4 MB, free: 10.44 MB / 330.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.110635370016098]