Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001917/0.001917, allocations: 99.53 kB / 21.73 MB, free: 2.684 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.001979/0.001979, allocations: 168.9 kB / 25.03 MB, free: 8.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.323/1.323, allocations: 158.6 MB / 186.8 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 250.4 MB, free: 3.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.777e-05/2.96e-05, allocations: 2.312 kB / 250.4 MB, free: 3.934 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.02611/0.02614, allocations: 13.91 MB / 264.3 MB, free: 5.973 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03311/0.05925, allocations: 18.84 MB / 283.1 MB, free: 3.055 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002659/0.06191, allocations: 142.4 kB / 283.2 MB, free: 2.914 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003629/0.06554, allocations: 1.133 MB / 284.4 MB, free: 1.773 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009036/0.07457, allocations: 2.451 MB / 286.8 MB, free: 15.3 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005072/0.07964, allocations: 1.394 MB / 288.2 MB, free: 13.89 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01267/0.09231, allocations: 6.682 MB / 294.9 MB, free: 7.191 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000937/0.09325, allocations: 262.3 kB / 295.2 MB, free: 6.906 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002681/0.09593, allocations: 1.477 MB / 296.6 MB, free: 5.426 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001331/0.09726, allocations: 0.7825 MB / 297.4 MB, free: 4.641 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002415/0.0975, allocations: 76 kB / 297.5 MB, free: 4.566 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00371/0.1012, allocations: 1.089 MB / 298.6 MB, free: 3.477 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000449/0.1017, allocations: 341.4 kB / 298.9 MB, free: 3.141 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001454/0.1031, allocations: 0.767 MB / 299.7 MB, free: 2.371 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1177/0.2208, allocations: 3.995 MB / 303.7 MB, free: 29.1 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.2208, allocations: 1.875 kB / 303.7 MB, free: 29.1 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2208, allocations: 0 / 303.7 MB, free: 29.1 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001099/0.2209, allocations: 2.781 kB / 303.7 MB, free: 29.1 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.006847/0.2278, allocations: 4.261 MB / 307.9 MB, free: 26.75 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.2278, allocations: 13.73 kB / 308 MB, free: 26.75 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007457/0.2286, allocations: 474.8 kB / 308.4 MB, free: 26.52 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004106/0.2327, allocations: 2.665 MB / 311.1 MB, free: 25.62 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.553e-05/0.2327, allocations: 38.75 kB / 311.1 MB, free: 25.62 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000149/0.2329, allocations: 58.5 kB / 311.2 MB, free: 25.62 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.2341, allocations: 0.6408 MB / 311.8 MB, free: 25.57 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.2341, allocations: 0 / 311.8 MB, free: 25.57 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.506e-05/0.2342, allocations: 18.78 kB / 311.8 MB, free: 25.57 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.209e-05/0.2342, allocations: 20.3 kB / 311.9 MB, free: 25.57 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.2356, allocations: 0.7111 MB / 312.6 MB, free: 25.57 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006383/0.2419, allocations: 3.462 MB / 316 MB, free: 25.06 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000936/0.2429, allocations: 434.3 kB / 316.5 MB, free: 25.02 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007124/0.2436, allocations: 498.7 kB / 316.9 MB, free: 25 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02363/0.2672, allocations: 15.43 MB / 332.4 MB, free: 16.98 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005902/0.2678, allocations: 362.9 kB / 332.7 MB, free: 16.62 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 2.826e-06/0.2678, allocations: 1.75 kB / 332.7 MB, free: 16.62 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.002116/0.2699, allocations: 1.088 MB / 333.8 MB, free: 15.53 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.949e-05/0.27, allocations: 62.97 kB / 333.9 MB, free: 15.46 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00396/0.2739, allocations: 4.192 MB / 338.1 MB, free: 11.25 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.668e-05/0.274, allocations: 33.7 kB / 338.1 MB, free: 11.21 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.2751, allocations: 1.905 MB / 340 MB, free: 9.297 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001528/0.2753, allocations: 186.9 kB / 340.2 MB, free: 9.117 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002707/0.2756, allocations: 252 kB / 340.4 MB, free: 8.863 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.806e-05/0.2757, allocations: 0.5332 MB / 341 MB, free: 8.324 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004467/0.2761, allocations: 218.8 kB / 341.2 MB, free: 8.113 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005985/0.2767, allocations: 0.7575 MB / 341.9 MB, free: 7.129 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.2777, allocations: 1.039 MB / 343 MB, free: 5.906 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.2777, allocations: 8 kB / 343 MB, free: 5.898 MB / 282.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001973/0.2797, allocations: 1.276 MB / 344.3 MB, free: 4.699 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.2797, allocations: 8 kB / 344.3 MB, free: 4.691 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-05/0.2798, allocations: 80 kB / 344.3 MB, free: 4.613 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.864e-05/0.2799, allocations: 20.78 kB / 344.4 MB, free: 4.594 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006542/0.2805, allocations: 203.5 kB / 344.6 MB, free: 4.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.882e-05/0.2805, allocations: 25.8 kB / 344.6 MB, free: 4.391 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/0.282, allocations: 113.3 kB / 344.7 MB, free: 4.281 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.903e-05/0.2821, allocations: 64 kB / 344.8 MB, free: 4.219 MB / 282.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.0007587/0.2828, allocations: 497 kB / 345.3 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005046/0.2833, allocations: 433.3 kB / 345.7 MB, free: 3.312 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002275/0.2856, allocations: 1.178 MB / 346.9 MB, free: 2.145 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.2856, allocations: 4 kB / 346.9 MB, free: 2.141 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2856, allocations: 7.422 kB / 346.9 MB, free: 2.137 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2856, allocations: 0 / 346.9 MB, free: 2.137 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004188/0.2898, allocations: 2.658 MB / 349.5 MB, free: 15.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001144/0.2899, allocations: 68 kB / 349.6 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004818/0.2904, allocations: 87.41 kB / 349.7 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.417e-05/0.2904, allocations: 0 / 349.7 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.7e-05/0.2905, allocations: 43.45 kB / 349.7 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.2905, allocations: 4.062 kB / 349.7 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.2905, allocations: 3.938 kB / 349.7 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002917/0.2934, allocations: 1.351 MB / 351.1 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001519/0.2949, allocations: 460.9 kB / 351.5 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004545/0.2954, allocations: 11.98 kB / 351.5 MB, free: 13.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007/0.2961, allocations: 24.02 kB / 351.6 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/0.2963, allocations: 71.23 kB / 351.6 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.2964, allocations: 36 kB / 351.7 MB, free: 13.28 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.004203/0.3006, allocations: 2.355 MB / 354 MB, free: 10.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3006, allocations: 0 / 354 MB, free: 10.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002071/0.3027, allocations: 0.6008 MB / 354.6 MB, free: 10.33 MB / 298.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.304, allocations: 0.8391 MB / 355.5 MB, free: 9.633 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001727/0.3057, allocations: 0.7888 MB / 356.2 MB, free: 8.848 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3058, allocations: 0 / 356.2 MB, free: 8.848 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008032/0.3066, allocations: 431.5 kB / 356.7 MB, free: 8.406 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002501/0.3091, allocations: 0.5692 MB / 357.2 MB, free: 7.844 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008313/0.3174, allocations: 4.647 MB / 361.9 MB, free: 3.133 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001389/0.3188, allocations: 1.166 MB / 363.1 MB, free: 1.926 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.001264/0.32, allocations: 368.3 kB / 363.4 MB, free: 1.562 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003024/0.3203, allocations: 152.5 kB / 363.6 MB, free: 1.414 MB / 298.7 MB Notification: Performance of SimCode: time 1.794e-06/0.3203, allocations: 0 / 363.6 MB, free: 1.414 MB / 298.7 MB Notification: Performance of Templates: time 0.06589/0.3862, allocations: 33.41 MB / 397 MB, free: 116 kB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.525803301017731]