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.0008976/0.0008976, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009689/0.0009689, allocations: 143 kB / 24.89 MB, free: 8.781 MB / 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 0.8977/0.8977, allocations: 173.4 MB / 201.5 MB, free: 8.258 MB / 186.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.252e-06/1.252e-06, allocations: 0 / 268.5 MB, free: 9.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.997e-05/2.122e-05, allocations: 2.312 kB / 268.5 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.009639/0.00966, allocations: 14.29 MB / 282.8 MB, free: 11.42 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02077/0.03043, allocations: 19.86 MB / 302.7 MB, free: 7.492 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001203/0.03164, allocations: 138.5 kB / 302.8 MB, free: 7.355 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001946/0.03358, allocations: 1.208 MB / 304 MB, free: 6.137 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00424/0.03782, allocations: 2.433 MB / 306.4 MB, free: 3.688 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002696/0.04052, allocations: 1.407 MB / 307.8 MB, free: 2.27 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005252/0.04577, allocations: 6.906 MB / 314.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003918/0.04616, allocations: 303 kB / 315 MB, free: 11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002178/0.04834, allocations: 3.001 MB / 318.1 MB, free: 7.996 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007357/0.04908, allocations: 0.8563 MB / 318.9 MB, free: 7.137 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000101/0.04918, allocations: 72 kB / 319 MB, free: 7.066 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002299/0.05148, allocations: 1.256 MB / 320.2 MB, free: 5.809 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002589/0.05174, allocations: 353.4 kB / 320.6 MB, free: 5.461 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005752/0.05231, allocations: 0.7632 MB / 321.3 MB, free: 4.695 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002264/0.05457, allocations: 2.868 MB / 324.2 MB, free: 1.816 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.05458, allocations: 0 / 324.2 MB, free: 1.816 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.05458, allocations: 3.938 kB / 324.2 MB, free: 1.812 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.698e-05/0.05464, allocations: 4 kB / 324.2 MB, free: 1.809 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.002897/0.05754, allocations: 3.821 MB / 328 MB, free: 13.93 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.05757, allocations: 11.97 kB / 328 MB, free: 13.92 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002919/0.05787, allocations: 291.6 kB / 328.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001773/0.05964, allocations: 2.112 MB / 330.4 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.325e-05/0.05966, allocations: 37 kB / 330.5 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.311e-05/0.05974, allocations: 59.88 kB / 330.5 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000468/0.0602, allocations: 471.4 kB / 331 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.06022, allocations: 0 / 331 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.56e-05/0.06025, allocations: 16 kB / 331 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.06027, allocations: 23.98 kB / 331 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003319/0.0606, allocations: 232.5 kB / 331.3 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002064/0.06266, allocations: 1.556 MB / 332.8 MB, free: 8.988 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002735/0.06294, allocations: 276.9 kB / 333.1 MB, free: 8.707 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002626/0.0632, allocations: 334.9 kB / 333.4 MB, free: 8.379 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1359/0.1991, allocations: 22.99 MB / 356.4 MB, free: 46.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002823/0.1994, allocations: 218.4 kB / 356.6 MB, free: 46.4 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.525e-06/0.1994, allocations: 0 / 356.6 MB, free: 46.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.000614/0.2, allocations: 488.7 kB / 357.1 MB, free: 46.37 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.637e-05/0.2, allocations: 65.97 kB / 357.2 MB, free: 46.31 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001648/0.2017, allocations: 2.791 MB / 360 MB, free: 45.13 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.346e-05/0.2017, allocations: 34.72 kB / 360 MB, free: 45.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003709/0.2021, allocations: 0.7829 MB / 360.8 MB, free: 44.79 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.857e-05/0.2022, allocations: 179.9 kB / 360.9 MB, free: 44.77 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001699/0.2023, allocations: 186.5 kB / 361.1 MB, free: 44.66 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.205e-05/0.2024, allocations: 344.8 kB / 361.5 MB, free: 44.34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.2025, allocations: 77.91 kB / 361.5 MB, free: 44.28 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.2027, allocations: 457.9 kB / 362 MB, free: 43.72 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004192/0.2031, allocations: 0.6167 MB / 362.6 MB, free: 43.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.2031, allocations: 4 kB / 362.6 MB, free: 43.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0006977/0.2038, allocations: 0.7001 MB / 363.3 MB, free: 42.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.2038, allocations: 12 kB / 363.3 MB, free: 42.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.578e-05/0.2039, allocations: 19.69 kB / 363.3 MB, free: 42.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/0.2039, allocations: 17.5 kB / 363.4 MB, free: 42.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005019/0.2044, allocations: 219.8 kB / 363.6 MB, free: 42.44 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.2044, allocations: 31.34 kB / 363.6 MB, free: 42.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005911/0.205, allocations: 104.2 kB / 363.7 MB, free: 42.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.806e-05/0.2051, allocations: 38.91 kB / 363.7 MB, free: 42.33 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.0002732/0.2054, allocations: 173.5 kB / 363.9 MB, free: 42.2 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002007/0.2056, allocations: 255.5 kB / 364.2 MB, free: 42.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00114/0.2067, allocations: 0.8046 MB / 365 MB, free: 41.57 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.2067, allocations: 4 kB / 365 MB, free: 41.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-06/0.2067, allocations: 0.875 kB / 365 MB, free: 41.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2067, allocations: 3.938 kB / 365 MB, free: 41.57 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001396/0.2081, allocations: 1.595 MB / 366.6 MB, free: 40.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.504e-05/0.2082, allocations: 17.69 kB / 366.6 MB, free: 40.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003011/0.2085, allocations: 97.16 kB / 366.7 MB, free: 40.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.399e-06/0.2085, allocations: 6.406 kB / 366.7 MB, free: 40.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.511e-05/0.2085, allocations: 18.23 kB / 366.7 MB, free: 40.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.2085, allocations: 0 / 366.7 MB, free: 40.58 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.2085, allocations: 11.59 kB / 366.7 MB, free: 40.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005995/0.2091, allocations: 0.642 MB / 367.4 MB, free: 39.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003757/0.2095, allocations: 411.1 kB / 367.8 MB, free: 39.55 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002194/0.2097, allocations: 7.875 kB / 367.8 MB, free: 39.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004571/0.2102, allocations: 19.86 kB / 367.8 MB, free: 39.53 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.2103, allocations: 48.41 kB / 367.8 MB, free: 39.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.189e-05/0.2103, allocations: 12.56 kB / 367.8 MB, free: 39.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009151/0.2112, allocations: 1.486 MB / 369.3 MB, free: 38.27 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2112, allocations: 4 kB / 369.3 MB, free: 38.27 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009254/0.2122, allocations: 0.6039 MB / 369.9 MB, free: 37.73 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.0009072/0.2131, allocations: 0.9207 MB / 370.9 MB, free: 37.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004857/0.2136, allocations: 470.6 kB / 371.3 MB, free: 36.6 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-05/0.2136, allocations: 40.5 kB / 371.4 MB, free: 36.56 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002284/0.2138, allocations: 242 kB / 371.6 MB, free: 36.32 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001598/0.2154, allocations: 0.6467 MB / 372.2 MB, free: 35.85 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003397/0.2188, allocations: 4.183 MB / 376.4 MB, free: 31.75 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.219, allocations: 398.4 kB / 376.8 MB, free: 31.34 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006323/0.2197, allocations: 357.3 kB / 377.2 MB, free: 30.99 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008927/0.2206, allocations: 0.5955 MB / 377.8 MB, free: 30.41 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.2206, allocations: 4 kB / 377.8 MB, free: 30.4 MB / 314.7 MB Notification: Performance of Templates: time 0.0397/0.2603, allocations: 38.27 MB / 416 MB, free: 9.195 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 -s gbode -gbm=radauIIA3 -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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3273138171061873]