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.001135/0.001135, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001719/0.002854, allocations: 449.7 kB / 10.37 MB, free: 328 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.00112/0.00112, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001462/0.002582, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9166/0.9166, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07504/0.9917, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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.183e-06/1.183e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.845e-06/9.028e-06, allocations: 2.312 kB / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.008777/0.008786, allocations: 14.36 MB / 258.9 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1171/0.1259, allocations: 19.98 MB / 278.8 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001391/0.1273, allocations: 137 kB / 279 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002001/0.1293, allocations: 1.206 MB / 280.2 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005544/0.1348, allocations: 2.432 MB / 282.6 MB, free: 16 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003343/0.1382, allocations: 1.411 MB / 284 MB, free: 15.79 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006488/0.1446, allocations: 6.859 MB / 290.9 MB, free: 14.4 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000468/0.1451, allocations: 300.7 kB / 291.2 MB, free: 14.25 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002738/0.1478, allocations: 3.592 MB / 294.8 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006191/0.1485, allocations: 0.8487 MB / 295.6 MB, free: 13.49 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.1486, allocations: 70.66 kB / 295.7 MB, free: 13.49 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002224/0.1508, allocations: 1.274 MB / 297 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004648/0.1513, allocations: 275.1 kB / 297.2 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005761/0.1518, allocations: 0.7056 MB / 297.9 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001993/0.1538, allocations: 2.701 MB / 300.6 MB, free: 10.55 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.263e-05/0.1538, allocations: 0 / 300.6 MB, free: 10.55 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1538, allocations: 0 / 300.6 MB, free: 10.55 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.48e-05/0.1539, allocations: 0 / 300.6 MB, free: 10.55 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.003016/0.1569, allocations: 4.551 MB / 305.2 MB, free: 6.285 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.819e-05/0.1569, allocations: 12.03 kB / 305.2 MB, free: 6.273 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002449/0.1572, allocations: 283.6 kB / 305.5 MB, free: 5.996 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001955/0.1591, allocations: 2.116 MB / 307.6 MB, free: 3.879 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.375e-05/0.1592, allocations: 40.98 kB / 307.6 MB, free: 3.836 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.187e-05/0.1592, allocations: 54.42 kB / 307.7 MB, free: 3.785 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004776/0.1597, allocations: 463.5 kB / 308.1 MB, free: 3.32 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.1597, allocations: 4 kB / 308.1 MB, free: 3.316 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.097e-05/0.1598, allocations: 20 kB / 308.2 MB, free: 3.297 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.1598, allocations: 27.92 kB / 308.2 MB, free: 3.27 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003251/0.1601, allocations: 223.6 kB / 308.4 MB, free: 3.055 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001941/0.162, allocations: 1.568 MB / 310 MB, free: 1.516 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000274/0.1623, allocations: 277 kB / 310.2 MB, free: 1.246 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000267/0.1626, allocations: 329.6 kB / 310.6 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02171/0.1843, allocations: 22.96 MB / 333.5 MB, free: 9.273 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002408/0.1845, allocations: 220 kB / 333.7 MB, free: 9.055 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.563e-06/0.1845, allocations: 0 / 333.7 MB, free: 9.055 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.000644/0.1852, allocations: 486 kB / 334.2 MB, free: 8.582 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.343e-05/0.1852, allocations: 67.34 kB / 334.3 MB, free: 8.504 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001441/0.1867, allocations: 2.799 MB / 337.1 MB, free: 6.285 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.246e-05/0.1867, allocations: 37.7 kB / 337.1 MB, free: 6.242 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003737/0.1871, allocations: 0.7789 MB / 337.9 MB, free: 5.629 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.569e-05/0.1872, allocations: 167.7 kB / 338.1 MB, free: 5.477 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.1873, allocations: 197.1 kB / 338.3 MB, free: 5.297 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.326e-05/0.1874, allocations: 348.8 kB / 338.6 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.1875, allocations: 73.97 kB / 338.7 MB, free: 4.895 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000245/0.1877, allocations: 456.4 kB / 339.1 MB, free: 4.293 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004101/0.1882, allocations: 0.615 MB / 339.7 MB, free: 3.531 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.1882, allocations: 4 kB / 339.7 MB, free: 3.527 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0005952/0.1888, allocations: 0.6996 MB / 340.4 MB, free: 2.828 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.1888, allocations: 9.719 kB / 340.4 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.912e-05/0.1888, allocations: 27.98 kB / 340.5 MB, free: 2.793 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.1888, allocations: 19.94 kB / 340.5 MB, free: 2.773 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004213/0.1893, allocations: 235.6 kB / 340.7 MB, free: 2.547 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.1893, allocations: 27.81 kB / 340.7 MB, free: 2.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004038/0.1897, allocations: 108.1 kB / 340.9 MB, free: 2.414 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.78e-05/0.1897, allocations: 43.94 kB / 340.9 MB, free: 2.371 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.0002452/0.19, allocations: 165.5 kB / 341.1 MB, free: 2.199 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001709/0.1901, allocations: 259.7 kB / 341.3 MB, free: 1.945 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001105/0.1913, allocations: 0.7961 MB / 342.1 MB, free: 1.145 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.1913, allocations: 4 kB / 342.1 MB, free: 1.141 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-06/0.1913, allocations: 0 / 342.1 MB, free: 1.141 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.1913, allocations: 0 / 342.1 MB, free: 1.141 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001223/0.1925, allocations: 1.609 MB / 343.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.574e-05/0.1925, allocations: 9.188 kB / 343.7 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002507/0.1928, allocations: 112.8 kB / 343.8 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003259/0.1931, allocations: 401.2 kB / 344.2 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1931, allocations: 0 / 344.2 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.664e-05/0.1931, allocations: 15.92 kB / 344.2 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.1931, allocations: 4 kB / 344.3 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1931, allocations: 0 / 344.3 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005588/0.1937, allocations: 0.6449 MB / 344.9 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001566/0.1938, allocations: 11.98 kB / 344.9 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003064/0.1942, allocations: 33.95 kB / 344.9 MB, free: 14.68 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.9e-05/0.1942, allocations: 47.8 kB / 345 MB, free: 14.63 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.891e-05/0.1943, allocations: 12 kB / 345 MB, free: 14.62 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008309/0.1951, allocations: 1.484 MB / 346.5 MB, free: 13.32 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1951, allocations: 0 / 346.5 MB, free: 13.32 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007268/0.1958, allocations: 0.6047 MB / 347.1 MB, free: 12.72 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.0008026/0.1966, allocations: 0.9252 MB / 348 MB, free: 11.93 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004271/0.197, allocations: 471 kB / 348.5 MB, free: 11.46 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.569e-05/0.1971, allocations: 48.44 kB / 348.5 MB, free: 11.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002074/0.1973, allocations: 242.6 kB / 348.8 MB, free: 11.15 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.1987, allocations: 0.9033 MB / 349.7 MB, free: 10.25 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006273/0.2049, allocations: 4.201 MB / 353.9 MB, free: 5.992 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002321/0.2052, allocations: 407.2 kB / 354.3 MB, free: 5.574 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005414/0.2057, allocations: 361.3 kB / 354.6 MB, free: 5.215 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007387/0.2064, allocations: 0.5889 MB / 355.2 MB, free: 4.617 MB / 330.7 MB Notification: Performance of SimCode: time 9.41e-07/0.2064, allocations: 0 / 355.2 MB, free: 4.617 MB / 330.7 MB Notification: Performance of Templates: time 0.04168/0.2481, allocations: 39.72 MB / 394.9 MB, free: 13.5 MB / 378.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 -ignoreHideResult -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.1554712681099772]