Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00137/0.00137, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.001821/0.001821, allocations: 161 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9918/0.9918, allocations: 177.1 MB / 205 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.115e-05/2.225e-05, allocations: 2.312 kB / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.00968/0.009702, allocations: 14.66 MB / 287.6 MB, free: 2.828 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1479/0.1576, allocations: 19.86 MB / 307.5 MB, free: 9.773 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002122/0.1597, allocations: 139.9 kB / 307.6 MB, free: 9.676 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002823/0.1626, allocations: 1.165 MB / 308.8 MB, free: 9.105 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00828/0.1708, allocations: 2.476 MB / 311.3 MB, free: 7.527 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005055/0.1759, allocations: 1.443 MB / 312.7 MB, free: 6.438 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007605/0.1835, allocations: 7.039 MB / 319.7 MB, free: 2.797 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005631/0.1841, allocations: 262.3 kB / 320 MB, free: 2.512 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001677/0.1857, allocations: 1.609 MB / 321.6 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007983/0.1865, allocations: 0.8173 MB / 322.4 MB, free: 80 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001493/0.1867, allocations: 76 kB / 322.5 MB, free: 4 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003118/0.1898, allocations: 1.206 MB / 323.7 MB, free: 14.8 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002185/0.19, allocations: 337.5 kB / 324 MB, free: 14.46 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008492/0.1909, allocations: 0.7715 MB / 324.8 MB, free: 13.69 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003202/0.1941, allocations: 2.871 MB / 327.7 MB, free: 10.81 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1941, allocations: 0 / 327.7 MB, free: 10.81 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1941, allocations: 0 / 327.7 MB, free: 10.81 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.52e-05/0.1941, allocations: 0 / 327.7 MB, free: 10.81 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.003592/0.1977, allocations: 4.071 MB / 331.8 MB, free: 6.672 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.1978, allocations: 12.03 kB / 331.8 MB, free: 6.66 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004928/0.1983, allocations: 477.2 kB / 332.2 MB, free: 6.191 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002314/0.2006, allocations: 2.641 MB / 334.9 MB, free: 3.457 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.596e-05/0.2006, allocations: 37 kB / 334.9 MB, free: 3.418 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.379e-05/0.2007, allocations: 59.95 kB / 335 MB, free: 3.359 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007418/0.2014, allocations: 0.5319 MB / 335.5 MB, free: 2.82 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.2015, allocations: 0 / 335.5 MB, free: 2.82 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.737e-05/0.2015, allocations: 27.94 kB / 335.5 MB, free: 2.793 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.2015, allocations: 23.97 kB / 335.5 MB, free: 2.77 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005814/0.2021, allocations: 486.4 kB / 336 MB, free: 2.297 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003397/0.2055, allocations: 2.922 MB / 338.9 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004557/0.206, allocations: 329.3 kB / 339.3 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004215/0.2064, allocations: 413.8 kB / 339.7 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01579/0.2222, allocations: 15.24 MB / 354.9 MB, free: 14.94 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003515/0.2225, allocations: 280.5 kB / 355.2 MB, free: 14.65 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.284e-06/0.2225, allocations: 0 / 355.2 MB, free: 14.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.001081/0.2236, allocations: 0.8854 MB / 356.1 MB, free: 13.76 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.578e-05/0.2237, allocations: 63.33 kB / 356.1 MB, free: 13.68 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002925/0.2266, allocations: 3.327 MB / 359.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.015e-05/0.2266, allocations: 33.7 kB / 359.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001138/0.2278, allocations: 1.765 MB / 361.3 MB, free: 8.531 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.2279, allocations: 170.6 kB / 361.4 MB, free: 8.363 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002086/0.2281, allocations: 236 kB / 361.7 MB, free: 8.125 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.2282, allocations: 0.5121 MB / 362.2 MB, free: 7.605 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002004/0.2284, allocations: 129.9 kB / 362.3 MB, free: 7.477 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004351/0.2289, allocations: 0.6472 MB / 362.9 MB, free: 6.59 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006765/0.2295, allocations: 0.8578 MB / 363.8 MB, free: 5.496 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.2295, allocations: 4 kB / 363.8 MB, free: 5.492 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00108/0.2306, allocations: 1.091 MB / 364.9 MB, free: 4.395 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.2306, allocations: 11.94 kB / 364.9 MB, free: 4.383 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.79e-05/0.2307, allocations: 80.88 kB / 365 MB, free: 4.305 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.684e-05/0.2308, allocations: 23.06 kB / 365 MB, free: 4.285 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004064/0.2312, allocations: 199.7 kB / 365.2 MB, free: 4.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.041e-05/0.2312, allocations: 35.8 kB / 365.2 MB, free: 4.055 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004879/0.2317, allocations: 103.3 kB / 365.3 MB, free: 3.953 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.994e-05/0.2317, allocations: 64 kB / 365.4 MB, free: 3.891 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.000323/0.2321, allocations: 217.1 kB / 365.6 MB, free: 3.668 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000295/0.2324, allocations: 429.4 kB / 366 MB, free: 3.246 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001421/0.2338, allocations: 1.031 MB / 367.1 MB, free: 2.215 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/0.2338, allocations: 11.98 kB / 367.1 MB, free: 2.203 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.882e-06/0.2338, allocations: 7.938 kB / 367.1 MB, free: 2.195 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2338, allocations: 0 / 367.1 MB, free: 2.195 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002055/0.2359, allocations: 2.136 MB / 369.2 MB, free: 0 / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.956e-05/0.2359, allocations: 71.98 kB / 369.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002318/0.2362, allocations: 83.88 kB / 369.4 MB, free: 15.85 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.178e-06/0.2362, allocations: 8.047 kB / 369.4 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.111e-05/0.2362, allocations: 39.94 kB / 369.4 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.2362, allocations: 0 / 369.4 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2362, allocations: 0 / 369.4 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.2372, allocations: 1.107 MB / 370.5 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004515/0.2377, allocations: 451 kB / 371 MB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.2379, allocations: 15.92 kB / 371 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003267/0.2382, allocations: 27.92 kB / 371 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.2383, allocations: 59.92 kB / 371.1 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.269e-05/0.2383, allocations: 36 kB / 371.1 MB, free: 14.08 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001565/0.2399, allocations: 1.819 MB / 372.9 MB, free: 12.27 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2399, allocations: 0 / 372.9 MB, free: 12.27 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001061/0.241, allocations: 0.6086 MB / 373.5 MB, free: 11.66 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.0009669/0.2419, allocations: 0.8294 MB / 374.4 MB, free: 10.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006841/0.2426, allocations: 0.6217 MB / 375 MB, free: 10.17 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2426, allocations: 0 / 375 MB, free: 10.17 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002987/0.2429, allocations: 356 kB / 375.3 MB, free: 9.797 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00148/0.2444, allocations: 0.6629 MB / 376 MB, free: 9.141 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003877/0.2483, allocations: 4.307 MB / 380.3 MB, free: 4.762 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.2485, allocations: 406.4 kB / 380.7 MB, free: 4.344 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006166/0.2492, allocations: 357.3 kB / 381 MB, free: 3.988 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001518/0.2493, allocations: 156.5 kB / 381.2 MB, free: 3.836 MB / 330.7 MB Notification: Performance of SimCode: time 1.192e-06/0.2493, allocations: 0 / 381.2 MB, free: 3.836 MB / 330.7 MB Notification: Performance of Templates: time 0.04129/0.2906, allocations: 33.43 MB / 414.6 MB, free: 2.957 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.880905390251428]