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.0009348/0.0009348, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.001011/0.001011, allocations: 158.9 kB / 25.75 MB, free: 8.949 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 0.9091/0.9091, allocations: 158.6 MB / 187.5 MB, free: 2.945 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.323e-06/1.323e-06, allocations: 0 / 251.1 MB, free: 7.824 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.446e-05/1.578e-05, allocations: 2.312 kB / 251.1 MB, free: 7.82 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.009363/0.009379, allocations: 13.93 MB / 265 MB, free: 9.824 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01883/0.02821, allocations: 18.84 MB / 283.9 MB, free: 6.906 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001089/0.0293, allocations: 142.5 kB / 284 MB, free: 6.766 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002217/0.03152, allocations: 1.137 MB / 285.2 MB, free: 5.621 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004195/0.03571, allocations: 2.447 MB / 287.6 MB, free: 3.156 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002603/0.03832, allocations: 1.398 MB / 289 MB, free: 1.746 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007074/0.04539, allocations: 6.686 MB / 295.7 MB, free: 11.04 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004802/0.04587, allocations: 262.3 kB / 295.9 MB, free: 10.75 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00139/0.04726, allocations: 1.469 MB / 297.4 MB, free: 9.277 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000846/0.04811, allocations: 0.7825 MB / 298.2 MB, free: 8.492 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001306/0.04824, allocations: 76 kB / 298.3 MB, free: 8.418 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002039/0.05028, allocations: 1.093 MB / 299.4 MB, free: 7.324 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002497/0.05052, allocations: 345.4 kB / 299.7 MB, free: 6.984 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007488/0.05127, allocations: 0.767 MB / 300.5 MB, free: 6.215 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002943/0.05422, allocations: 2.891 MB / 303.4 MB, free: 3.312 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.05422, allocations: 0 / 303.4 MB, free: 3.312 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.05422, allocations: 0 / 303.4 MB, free: 3.312 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.917e-05/0.05424, allocations: 0 / 303.4 MB, free: 3.312 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.004005/0.05825, allocations: 4.102 MB / 307.5 MB, free: 15.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.05828, allocations: 15.92 kB / 307.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004215/0.05871, allocations: 477.2 kB / 307.9 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002884/0.06159, allocations: 2.657 MB / 310.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.354e-05/0.06162, allocations: 37 kB / 310.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.06173, allocations: 63.88 kB / 310.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008676/0.0626, allocations: 0.5434 MB / 311.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.06262, allocations: 0 / 311.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.155e-05/0.06268, allocations: 20 kB / 311.3 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.217e-05/0.0627, allocations: 19.98 kB / 311.3 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007876/0.06349, allocations: 486.4 kB / 311.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003861/0.06735, allocations: 2.937 MB / 314.7 MB, free: 7.746 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00052/0.06787, allocations: 325.4 kB / 315 MB, free: 7.414 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005448/0.06841, allocations: 417.8 kB / 315.4 MB, free: 7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01604/0.08445, allocations: 15.26 MB / 330.7 MB, free: 7.355 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000309/0.08476, allocations: 279.5 kB / 330.9 MB, free: 7.07 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.814e-06/0.08476, allocations: 0 / 330.9 MB, free: 7.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009184/0.08568, allocations: 0.8932 MB / 331.8 MB, free: 6.168 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/0.08572, allocations: 63.34 kB / 331.9 MB, free: 6.094 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002479/0.08819, allocations: 3.352 MB / 335.3 MB, free: 2.73 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/0.08823, allocations: 33.7 kB / 335.3 MB, free: 2.691 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001059/0.08929, allocations: 1.761 MB / 337 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.08939, allocations: 178.6 kB / 337.2 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.08958, allocations: 240 kB / 337.5 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.0897, allocations: 0.5043 MB / 338 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001886/0.08989, allocations: 133.9 kB / 338.1 MB, free: 15.86 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004122/0.09031, allocations: 0.655 MB / 338.7 MB, free: 14.96 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006334/0.09094, allocations: 0.8461 MB / 339.6 MB, free: 13.88 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.09094, allocations: 4 kB / 339.6 MB, free: 13.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0009779/0.09192, allocations: 1.095 MB / 340.7 MB, free: 12.77 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.09194, allocations: 15.94 kB / 340.7 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.541e-05/0.09201, allocations: 91.86 kB / 340.8 MB, free: 12.67 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.504e-05/0.09203, allocations: 20.78 kB / 340.8 MB, free: 12.65 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003919/0.09242, allocations: 199.7 kB / 341 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.06e-05/0.09245, allocations: 31.86 kB / 341 MB, free: 12.42 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004375/0.09288, allocations: 99.34 kB / 341.1 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.299e-05/0.09296, allocations: 64 kB / 341.2 MB, free: 12.26 MB / 330.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.0003182/0.09327, allocations: 212.3 kB / 341.4 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002624/0.09354, allocations: 433.3 kB / 341.8 MB, free: 11.61 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001274/0.09481, allocations: 1.06 MB / 342.9 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.09481, allocations: 4 kB / 342.9 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.09482, allocations: 0 / 342.9 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.09482, allocations: 3.984 kB / 342.9 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002072/0.0969, allocations: 2.148 MB / 345.1 MB, free: 8.332 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.659e-05/0.09695, allocations: 75.92 kB / 345.1 MB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002425/0.0972, allocations: 91.94 kB / 345.2 MB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.0972, allocations: 0 / 345.2 MB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.703e-05/0.09724, allocations: 35.94 kB / 345.2 MB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.09724, allocations: 4 kB / 345.3 MB, free: 8.129 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.09724, allocations: 0 / 345.3 MB, free: 8.129 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009457/0.09819, allocations: 1.111 MB / 346.4 MB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004028/0.09859, allocations: 462.9 kB / 346.8 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001762/0.09876, allocations: 15.98 kB / 346.8 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000326/0.09909, allocations: 20.02 kB / 346.9 MB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.09922, allocations: 63.92 kB / 346.9 MB, free: 6.434 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.222e-05/0.09926, allocations: 36 kB / 346.9 MB, free: 6.398 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001608/0.1009, allocations: 1.831 MB / 348.8 MB, free: 4.574 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1009, allocations: 0 / 348.8 MB, free: 4.574 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007738/0.1016, allocations: 0.6008 MB / 349.4 MB, free: 3.973 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.0008781/0.1025, allocations: 0.8389 MB / 350.2 MB, free: 3.125 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006372/0.1032, allocations: 0.6209 MB / 350.8 MB, free: 2.473 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1032, allocations: 0 / 350.8 MB, free: 2.473 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002919/0.1034, allocations: 351.8 kB / 351.2 MB, free: 2.098 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.1046, allocations: 0.566 MB / 351.8 MB, free: 1.527 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0962/0.2008, allocations: 4.32 MB / 356.1 MB, free: 105.8 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.201, allocations: 403.4 kB / 356.5 MB, free: 105.7 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007009/0.2017, allocations: 359.3 kB / 356.8 MB, free: 105.6 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.2019, allocations: 152.9 kB / 357 MB, free: 105.6 MB / 330.7 MB Notification: Performance of SimCode: time 1.393e-06/0.2019, allocations: 2.062 kB / 357 MB, free: 105.6 MB / 330.7 MB Notification: Performance of Templates: time 0.03046/0.2323, allocations: 33.54 MB / 390.5 MB, free: 74.52 MB / 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","",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.496089447988197]