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.001912/0.001912, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.001916/0.001916, allocations: 153.1 kB / 24.27 MB, free: 168 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.535/1.535, allocations: 173.3 MB / 200.8 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 178] 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 2.284e-06/2.284e-06, allocations: 0 / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.238e-05/3.467e-05, allocations: 2.312 kB / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.02633/0.02637, allocations: 14.57 MB / 281.9 MB, free: 8.113 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1483/0.1747, allocations: 19.78 MB / 301.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002271/0.1769, allocations: 141.4 kB / 301.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003116/0.1801, allocations: 1.168 MB / 303 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007345/0.1874, allocations: 2.476 MB / 305.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004954/0.1924, allocations: 1.449 MB / 306.9 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009225/0.2016, allocations: 6.83 MB / 313.7 MB, free: 8.781 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007137/0.2023, allocations: 265.1 kB / 314 MB, free: 8.617 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002058/0.2044, allocations: 1.606 MB / 315.6 MB, free: 7.832 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001033/0.2054, allocations: 0.8178 MB / 316.4 MB, free: 7.512 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002306/0.2056, allocations: 75.28 kB / 316.5 MB, free: 7.512 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003546/0.2092, allocations: 1.209 MB / 317.7 MB, free: 6.742 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002946/0.2095, allocations: 335.3 kB / 318 MB, free: 6.426 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001161/0.2106, allocations: 0.7661 MB / 318.8 MB, free: 5.672 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004161/0.2148, allocations: 3.96 MB / 322.7 MB, free: 1.871 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2148, allocations: 3.984 kB / 322.7 MB, free: 1.867 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2148, allocations: 0 / 322.7 MB, free: 1.867 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.405e-05/0.2148, allocations: 0 / 322.7 MB, free: 1.867 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.00598/0.2208, allocations: 4.243 MB / 327 MB, free: 13.56 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.2209, allocations: 12.92 kB / 327 MB, free: 13.55 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006851/0.2215, allocations: 477.2 kB / 327.5 MB, free: 13.08 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004408/0.226, allocations: 2.653 MB / 330.1 MB, free: 10.33 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.494e-05/0.226, allocations: 33 kB / 330.1 MB, free: 10.3 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/0.2262, allocations: 59.95 kB / 330.2 MB, free: 10.24 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.2276, allocations: 0.6374 MB / 330.8 MB, free: 9.598 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.2276, allocations: 0 / 330.8 MB, free: 9.598 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.456e-05/0.2276, allocations: 20 kB / 330.9 MB, free: 9.578 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.378e-05/0.2277, allocations: 31.86 kB / 330.9 MB, free: 9.547 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/0.2292, allocations: 0.707 MB / 331.6 MB, free: 8.84 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006908/0.2361, allocations: 3.426 MB / 335 MB, free: 5.355 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.2372, allocations: 441.4 kB / 335.5 MB, free: 4.91 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009296/0.2382, allocations: 498.5 kB / 335.9 MB, free: 4.418 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03077/0.2689, allocations: 15.38 MB / 351.3 MB, free: 4.656 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007631/0.2697, allocations: 363 kB / 351.7 MB, free: 4.293 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.445e-06/0.2697, allocations: 0 / 351.7 MB, free: 4.293 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.002385/0.2721, allocations: 1.081 MB / 352.8 MB, free: 3.203 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.961e-05/0.2721, allocations: 59.41 kB / 352.8 MB, free: 3.133 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005993/0.2781, allocations: 4.167 MB / 357 MB, free: 14.95 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001141/0.2783, allocations: 37.7 kB / 357 MB, free: 14.91 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002134/0.2804, allocations: 1.913 MB / 358.9 MB, free: 12.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002651/0.2807, allocations: 182.6 kB / 359.1 MB, free: 12.8 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003883/0.281, allocations: 252 kB / 359.4 MB, free: 12.55 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003185/0.2814, allocations: 0.5316 MB / 359.9 MB, free: 12.01 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000563/0.2819, allocations: 213.9 kB / 360.1 MB, free: 11.8 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/0.283, allocations: 0.7526 MB / 360.8 MB, free: 10.8 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001687/0.2847, allocations: 1.041 MB / 361.9 MB, free: 9.531 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.006e-05/0.2847, allocations: 4 kB / 361.9 MB, free: 9.527 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002457/0.2871, allocations: 1.264 MB / 363.2 MB, free: 8.254 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.2872, allocations: 8 kB / 363.2 MB, free: 8.246 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001271/0.2873, allocations: 83.98 kB / 363.2 MB, free: 8.164 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.101e-05/0.2873, allocations: 20 kB / 363.3 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007372/0.2881, allocations: 200.1 kB / 363.5 MB, free: 7.949 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.791e-05/0.2881, allocations: 23.94 kB / 363.5 MB, free: 7.926 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009523/0.289, allocations: 111.2 kB / 363.6 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/0.2892, allocations: 63.98 kB / 363.7 MB, free: 7.754 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.0009156/0.2901, allocations: 0.4885 MB / 364.1 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000538/0.2906, allocations: 429.4 kB / 364.6 MB, free: 6.832 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00276/0.2934, allocations: 1.169 MB / 365.7 MB, free: 5.66 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.2934, allocations: 7.984 kB / 365.7 MB, free: 5.652 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.2934, allocations: 4 kB / 365.7 MB, free: 5.648 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.2934, allocations: 7.922 kB / 365.8 MB, free: 5.641 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004545/0.2979, allocations: 2.632 MB / 368.4 MB, free: 2.953 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001137/0.2981, allocations: 68 kB / 368.5 MB, free: 2.887 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004571/0.2985, allocations: 87.94 kB / 368.5 MB, free: 2.801 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.2985, allocations: 0 / 368.5 MB, free: 2.801 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.811e-05/0.2986, allocations: 35.98 kB / 368.6 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.205e-06/0.2986, allocations: 7.938 kB / 368.6 MB, free: 2.758 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2986, allocations: 0 / 368.6 MB, free: 2.758 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002365/0.301, allocations: 1.361 MB / 369.9 MB, free: 1.363 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001003/0.302, allocations: 454.9 kB / 370.4 MB, free: 0.918 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002971/0.3023, allocations: 16.86 kB / 370.4 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006264/0.3029, allocations: 23.92 kB / 370.4 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/0.3031, allocations: 63.92 kB / 370.5 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.07e-05/0.3031, allocations: 36 kB / 370.5 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003528/0.3067, allocations: 2.339 MB / 372.9 MB, free: 14.45 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3067, allocations: 0 / 372.9 MB, free: 14.45 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001552/0.3082, allocations: 0.6048 MB / 373.5 MB, free: 13.84 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.001358/0.3096, allocations: 0.8305 MB / 374.3 MB, free: 13 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.3113, allocations: 0.7968 MB / 375.1 MB, free: 12.18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.3113, allocations: 8.125 kB / 375.1 MB, free: 12.17 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008153/0.3121, allocations: 428 kB / 375.5 MB, free: 11.72 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002789/0.3149, allocations: 0.6612 MB / 376.2 MB, free: 11.06 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008173/0.3231, allocations: 4.613 MB / 380.8 MB, free: 6.375 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00131/0.3244, allocations: 1.162 MB / 382 MB, free: 5.176 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001211/0.3256, allocations: 365.3 kB / 382.3 MB, free: 4.812 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002837/0.3259, allocations: 148.5 kB / 382.5 MB, free: 4.664 MB / 330.7 MB Notification: Performance of SimCode: time 1.603e-06/0.3259, allocations: 0 / 382.5 MB, free: 4.664 MB / 330.7 MB Notification: Performance of Templates: time 0.06605/0.3919, allocations: 33.25 MB / 415.7 MB, free: 3.965 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.6579143550479785]