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.0009828/0.0009828, allocations: 84.3 kB / 22.21 MB, free: 2.289 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.001023/0.001023, allocations: 170.6 kB / 25.6 MB, free: 8.926 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.9641/0.9641, allocations: 158.6 MB / 187.5 MB, free: 2.793 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.172e-06/1.172e-06, allocations: 0 / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.32e-05/1.438e-05, allocations: 6.25 kB / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.02338/0.0234, allocations: 13.55 MB / 265 MB, free: 9.641 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03631/0.05971, allocations: 18.52 MB / 283.5 MB, free: 7.043 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001919/0.06163, allocations: 142.4 kB / 283.7 MB, free: 6.902 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002737/0.06436, allocations: 1.133 MB / 284.8 MB, free: 5.762 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007617/0.07198, allocations: 2.447 MB / 287.3 MB, free: 3.297 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002753/0.07473, allocations: 1.398 MB / 288.7 MB, free: 1.887 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00616/0.08089, allocations: 6.819 MB / 295.5 MB, free: 11.05 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004561/0.08135, allocations: 262.4 kB / 295.7 MB, free: 10.76 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002424/0.08377, allocations: 2.881 MB / 298.6 MB, free: 7.875 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006728/0.08445, allocations: 0.8215 MB / 299.4 MB, free: 7.051 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001292/0.08458, allocations: 72 kB / 299.5 MB, free: 6.98 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001819/0.0864, allocations: 1.093 MB / 300.6 MB, free: 5.887 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001829/0.08658, allocations: 341.5 kB / 300.9 MB, free: 5.551 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005588/0.08714, allocations: 0.7787 MB / 301.7 MB, free: 4.77 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002245/0.08938, allocations: 2.899 MB / 304.6 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.08939, allocations: 0 / 304.6 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.08939, allocations: 0 / 304.6 MB, free: 1.859 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.843e-05/0.08942, allocations: 0 / 304.6 MB, free: 1.859 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.003036/0.09245, allocations: 4.156 MB / 308.8 MB, free: 13.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.09249, allocations: 11.98 kB / 308.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003394/0.09283, allocations: 477.2 kB / 309.2 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00213/0.09496, allocations: 2.591 MB / 311.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.634e-05/0.09498, allocations: 37 kB / 311.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.9e-05/0.09506, allocations: 59.95 kB / 311.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005322/0.09559, allocations: 492.6 kB / 312.4 MB, free: 9.887 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.0956, allocations: 0 / 312.4 MB, free: 9.887 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.21e-05/0.09565, allocations: 20 kB / 312.4 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.09566, allocations: 19.98 kB / 312.4 MB, free: 9.848 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004397/0.0961, allocations: 432.3 kB / 312.9 MB, free: 9.426 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002638/0.09874, allocations: 2.375 MB / 315.2 MB, free: 6.996 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003384/0.09908, allocations: 285.2 kB / 315.5 MB, free: 6.707 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003273/0.09941, allocations: 385.6 kB / 315.9 MB, free: 6.324 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01462/0.114, allocations: 15.31 MB / 331.2 MB, free: 6.66 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000259/0.1143, allocations: 263.5 kB / 331.5 MB, free: 6.391 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.513e-06/0.1143, allocations: 0 / 331.5 MB, free: 6.391 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007377/0.115, allocations: 0.8462 MB / 332.3 MB, free: 5.535 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.883e-05/0.1151, allocations: 59.41 kB / 332.4 MB, free: 5.465 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002074/0.1171, allocations: 3.307 MB / 335.7 MB, free: 2.145 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.1172, allocations: 41.7 kB / 335.7 MB, free: 2.098 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009742/0.1181, allocations: 1.792 MB / 337.5 MB, free: 296 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.512e-05/0.1182, allocations: 174.5 kB / 337.7 MB, free: 120 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001802/0.1184, allocations: 247.9 kB / 337.9 MB, free: 15.87 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.1185, allocations: 0.5121 MB / 338.4 MB, free: 15.35 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.1187, allocations: 101.9 kB / 338.5 MB, free: 15.25 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003412/0.119, allocations: 0.6353 MB / 339.2 MB, free: 14.37 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005307/0.1195, allocations: 0.8148 MB / 340 MB, free: 13.32 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.1195, allocations: 4 kB / 340 MB, free: 13.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0008289/0.1204, allocations: 1.037 MB / 341 MB, free: 12.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.1204, allocations: 12 kB / 341 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.013e-05/0.1204, allocations: 80 kB / 341.1 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.1205, allocations: 19.94 kB / 341.1 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000342/0.1208, allocations: 200.2 kB / 341.3 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.667e-05/0.1208, allocations: 31.92 kB / 341.4 MB, free: 11.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004164/0.1212, allocations: 111.3 kB / 341.5 MB, free: 11.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.609e-05/0.1213, allocations: 56 kB / 341.5 MB, free: 11.77 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.000281/0.1216, allocations: 220.2 kB / 341.7 MB, free: 11.54 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002433/0.1218, allocations: 437.3 kB / 342.2 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001118/0.1229, allocations: 1.001 MB / 343.2 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.1229, allocations: 11.94 kB / 343.2 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.1229, allocations: 0 / 343.2 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.123, allocations: 3.984 kB / 343.2 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00188/0.1248, allocations: 2.205 MB / 345.4 MB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.848e-05/0.1249, allocations: 75.98 kB / 345.5 MB, free: 7.746 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002173/0.1251, allocations: 83.88 kB / 345.5 MB, free: 7.664 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/0.1251, allocations: 12 kB / 345.6 MB, free: 7.652 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.533e-05/0.1251, allocations: 28 kB / 345.6 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.1252, allocations: 3.984 kB / 345.6 MB, free: 7.621 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1252, allocations: 7.938 kB / 345.6 MB, free: 7.613 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/0.1264, allocations: 1.049 MB / 346.6 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003997/0.1268, allocations: 455 kB / 347.1 MB, free: 6.086 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001461/0.1269, allocations: 11.94 kB / 347.1 MB, free: 6.074 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003155/0.1273, allocations: 23.98 kB / 347.1 MB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.218e-05/0.1273, allocations: 59.92 kB / 347.2 MB, free: 5.992 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.842e-05/0.1274, allocations: 36.03 kB / 347.2 MB, free: 5.957 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001137/0.1285, allocations: 1.713 MB / 348.9 MB, free: 4.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1285, allocations: 0 / 348.9 MB, free: 4.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009211/0.1294, allocations: 0.6008 MB / 349.5 MB, free: 3.648 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.0008327/0.1303, allocations: 0.9297 MB / 350.5 MB, free: 2.707 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000479/0.1308, allocations: 0.5782 MB / 351 MB, free: 2.102 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.1308, allocations: 4 kB / 351 MB, free: 2.098 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002531/0.131, allocations: 335.8 kB / 351.4 MB, free: 1.738 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.1321, allocations: 0.5618 MB / 351.9 MB, free: 1.172 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1014/0.2335, allocations: 4.335 MB / 356.3 MB, free: 87.55 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.2338, allocations: 401.8 kB / 356.7 MB, free: 87.45 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007048/0.2345, allocations: 358.4 kB / 357 MB, free: 87.42 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007841/0.2352, allocations: 0.728 MB / 357.7 MB, free: 87.37 MB / 330.7 MB Notification: Performance of SimCode: time 1.192e-06/0.2352, allocations: 0 / 357.7 MB, free: 87.37 MB / 330.7 MB Notification: Performance of Templates: time 0.03633/0.2716, allocations: 38.58 MB / 396.3 MB, free: 55.57 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.438550563994795]