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.001098/0.001098, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001312/0.00241, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.0007669/0.0007669, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009795/0.001746, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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.9092/0.9092, allocations: 158.6 MB / 171.2 MB, free: 2.508 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1401/1.049, allocations: 49.5 MB / 220.7 MB, free: 1.359 MB / 218.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.603e-06/1.603e-06, allocations: 0 / 222 MB, free: 84 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.491e-05/1.651e-05, allocations: 2.312 kB / 222 MB, free: 80 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01246/0.01248, allocations: 13.67 MB / 235.6 MB, free: 2.352 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0189/0.03138, allocations: 19.01 MB / 254.6 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00241/0.03379, allocations: 138.5 kB / 254.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002427/0.03622, allocations: 1.184 MB / 256 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005966/0.04218, allocations: 2.398 MB / 258.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003696/0.04588, allocations: 1.356 MB / 259.7 MB, free: 10.15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00722/0.0531, allocations: 6.633 MB / 266.4 MB, free: 3.496 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005788/0.05368, allocations: 307 kB / 266.7 MB, free: 3.156 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003424/0.0571, allocations: 3.364 MB / 270 MB, free: 15.71 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001125/0.05823, allocations: 0.8215 MB / 270.8 MB, free: 14.89 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001899/0.05842, allocations: 76 kB / 270.9 MB, free: 14.81 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002618/0.06103, allocations: 1.14 MB / 272.1 MB, free: 13.67 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002073/0.06124, allocations: 273.7 kB / 272.3 MB, free: 13.4 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007558/0.062, allocations: 0.7086 MB / 273 MB, free: 12.69 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002808/0.06481, allocations: 2.716 MB / 275.7 MB, free: 9.965 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.544e-05/0.06482, allocations: 3.984 kB / 275.8 MB, free: 9.961 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.06482, allocations: 0 / 275.8 MB, free: 9.961 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.265e-05/0.0649, allocations: 0 / 275.8 MB, free: 9.961 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.003923/0.06882, allocations: 4.58 MB / 280.3 MB, free: 5.309 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.06886, allocations: 8.031 kB / 280.3 MB, free: 5.301 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003496/0.06921, allocations: 299.6 kB / 280.6 MB, free: 5.008 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002067/0.07127, allocations: 2.12 MB / 282.8 MB, free: 2.777 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.257e-05/0.07131, allocations: 37 kB / 282.8 MB, free: 2.742 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.314e-05/0.0714, allocations: 55.94 kB / 282.8 MB, free: 2.688 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005915/0.07199, allocations: 471.4 kB / 283.3 MB, free: 2.211 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.072, allocations: 0 / 283.3 MB, free: 2.211 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.23e-05/0.07205, allocations: 16 kB / 283.3 MB, free: 2.195 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.07206, allocations: 23.92 kB / 283.3 MB, free: 2.172 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003495/0.07241, allocations: 232.4 kB / 283.6 MB, free: 1.945 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002176/0.07459, allocations: 1.568 MB / 285.1 MB, free: 344 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002879/0.07488, allocations: 272.9 kB / 285.4 MB, free: 64 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1115/0.1863, allocations: 328.6 kB / 285.7 MB, free: 40.36 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02559/0.2119, allocations: 23.05 MB / 308.8 MB, free: 31.79 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003854/0.2123, allocations: 216.6 kB / 309 MB, free: 31.66 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 2.946e-06/0.2123, allocations: 0 / 309 MB, free: 31.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.000587/0.2129, allocations: 493 kB / 309.5 MB, free: 31.29 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.436e-05/0.2129, allocations: 59.73 kB / 309.5 MB, free: 31.23 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001282/0.2142, allocations: 2.817 MB / 312.3 MB, free: 29.43 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.097e-05/0.2142, allocations: 33.7 kB / 312.4 MB, free: 29.39 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000292/0.2145, allocations: 0.786 MB / 313.2 MB, free: 28.89 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.207e-05/0.2146, allocations: 182.9 kB / 313.3 MB, free: 28.8 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.2147, allocations: 186.5 kB / 313.5 MB, free: 28.63 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.834e-05/0.2148, allocations: 343.8 kB / 313.9 MB, free: 28.31 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.083e-05/0.2149, allocations: 69.97 kB / 313.9 MB, free: 28.24 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.215, allocations: 462.2 kB / 314.4 MB, free: 27.65 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003589/0.2154, allocations: 0.6534 MB / 315 MB, free: 26.91 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.2154, allocations: 4.562 kB / 315 MB, free: 26.9 MB / 282.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0005229/0.2159, allocations: 0.7085 MB / 315.7 MB, free: 26.28 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.2159, allocations: 8 kB / 315.8 MB, free: 26.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.014e-05/0.216, allocations: 21.88 kB / 315.8 MB, free: 26.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.288e-05/0.216, allocations: 24.16 kB / 315.8 MB, free: 26.23 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004164/0.2164, allocations: 240.3 kB / 316 MB, free: 26.01 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.2164, allocations: 19.98 kB / 316.1 MB, free: 26 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004378/0.2169, allocations: 99.34 kB / 316.2 MB, free: 25.9 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.389e-05/0.2169, allocations: 43.98 kB / 316.2 MB, free: 25.86 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.0002433/0.2172, allocations: 169.6 kB / 316.4 MB, free: 25.7 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/0.2173, allocations: 255.7 kB / 316.6 MB, free: 25.45 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009311/0.2183, allocations: 0.8078 MB / 317.4 MB, free: 24.64 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.2183, allocations: 7.938 kB / 317.4 MB, free: 24.64 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.2183, allocations: 4 kB / 317.4 MB, free: 24.63 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.2183, allocations: 0 / 317.4 MB, free: 24.63 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/0.2194, allocations: 1.607 MB / 319 MB, free: 23.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.613e-05/0.2194, allocations: 12 kB / 319.1 MB, free: 23.4 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002369/0.2197, allocations: 106.6 kB / 319.2 MB, free: 23.3 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002901/0.22, allocations: 411.3 kB / 319.6 MB, free: 22.89 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.22, allocations: 8.062 kB / 319.6 MB, free: 22.89 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.437e-05/0.22, allocations: 14.42 kB / 319.6 MB, free: 22.88 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.22, allocations: 4 kB / 319.6 MB, free: 22.87 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.22, allocations: 0 / 319.6 MB, free: 22.87 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005221/0.2205, allocations: 0.6516 MB / 320.2 MB, free: 22.2 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/0.2207, allocations: 12 kB / 320.2 MB, free: 22.19 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003142/0.221, allocations: 23.97 kB / 320.3 MB, free: 22.17 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.104e-05/0.2211, allocations: 42.55 kB / 320.3 MB, free: 22.13 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.155e-05/0.2211, allocations: 17.06 kB / 320.3 MB, free: 22.12 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000687/0.2218, allocations: 1.495 MB / 321.8 MB, free: 20.82 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2218, allocations: 4 kB / 321.8 MB, free: 20.81 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007404/0.2225, allocations: 0.6047 MB / 322.4 MB, free: 20.21 MB / 282.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.0007399/0.2233, allocations: 0.9245 MB / 323.4 MB, free: 19.43 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003978/0.2237, allocations: 482.4 kB / 323.8 MB, free: 18.99 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.03e-05/0.2237, allocations: 53.33 kB / 323.9 MB, free: 18.94 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001948/0.2239, allocations: 263 kB / 324.1 MB, free: 18.67 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001819/0.2257, allocations: 6.498 MB / 330.6 MB, free: 10.9 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005868/0.2316, allocations: 4.229 MB / 334.9 MB, free: 6.625 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001776/0.2318, allocations: 411.4 kB / 335.3 MB, free: 6.203 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005137/0.2323, allocations: 357.5 kB / 335.6 MB, free: 5.848 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006695/0.233, allocations: 0.5967 MB / 336.2 MB, free: 5.246 MB / 282.7 MB Notification: Performance of SimCode: time 6.51e-07/0.233, allocations: 4 kB / 336.2 MB, free: 5.242 MB / 282.7 MB Notification: Performance of Templates: time 0.04191/0.2749, allocations: 39.69 MB / 375.9 MB, free: 13.64 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.516800760291517]