Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001122/0.001122, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001614/0.002736, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007379/0.0007379, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009754/0.001713, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.979/0.979, allocations: 177.5 MB / 190 MB, free: 4.789 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08992/1.069, allocations: 53.87 MB / 243.9 MB, free: 14.85 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.122e-05/2.29e-05, allocations: 5.406 kB / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.009857/0.00988, allocations: 14.35 MB / 259.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.131/0.1409, allocations: 19.99 MB / 279.5 MB, free: 0.582 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002176/0.1431, allocations: 140.5 kB / 279.7 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002627/0.1457, allocations: 1.204 MB / 280.9 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006077/0.1518, allocations: 2.43 MB / 283.3 MB, free: 0 / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003851/0.1556, allocations: 1.416 MB / 284.7 MB, free: 15.66 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.008131/0.1638, allocations: 6.868 MB / 291.6 MB, free: 14.24 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005589/0.1643, allocations: 299.9 kB / 291.9 MB, free: 14.09 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00384/0.1682, allocations: 3.588 MB / 295.5 MB, free: 13.48 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001003/0.1692, allocations: 0.8467 MB / 296.3 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.1693, allocations: 78.19 kB / 296.4 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002509/0.1718, allocations: 1.27 MB / 297.7 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004253/0.1722, allocations: 275.3 kB / 297.9 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007003/0.1729, allocations: 0.7094 MB / 298.6 MB, free: 12.29 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002717/0.1756, allocations: 2.692 MB / 301.3 MB, free: 10.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.461e-05/0.1757, allocations: 4 kB / 301.3 MB, free: 10.07 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1757, allocations: 0 / 301.3 MB, free: 10.07 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.379e-05/0.1757, allocations: 0 / 301.3 MB, free: 10.07 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.003292/0.179, allocations: 4.542 MB / 305.9 MB, free: 5.715 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.14e-05/0.1791, allocations: 12.62 kB / 305.9 MB, free: 5.703 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006008/0.1797, allocations: 299.6 kB / 306.2 MB, free: 5.41 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001821/0.1815, allocations: 2.111 MB / 308.3 MB, free: 3.281 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.398e-05/0.1815, allocations: 37 kB / 308.3 MB, free: 3.242 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.208e-05/0.1816, allocations: 50.5 kB / 308.4 MB, free: 3.195 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005175/0.1821, allocations: 467.4 kB / 308.8 MB, free: 2.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.1821, allocations: 4 kB / 308.8 MB, free: 2.727 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.182e-05/0.1821, allocations: 23.98 kB / 308.9 MB, free: 2.703 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.059e-05/0.1822, allocations: 23.92 kB / 308.9 MB, free: 2.68 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003411/0.1825, allocations: 228.5 kB / 309.1 MB, free: 2.457 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002159/0.1847, allocations: 1.573 MB / 310.7 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002982/0.185, allocations: 274 kB / 311 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002707/0.1852, allocations: 326.4 kB / 311.3 MB, free: 328 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02412/0.2094, allocations: 22.97 MB / 334.2 MB, free: 8.656 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006275/0.21, allocations: 207.1 kB / 334.4 MB, free: 8.445 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.265e-06/0.21, allocations: 0 / 334.4 MB, free: 8.445 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005281/0.2105, allocations: 497.9 kB / 334.9 MB, free: 7.961 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.2105, allocations: 59.39 kB / 335 MB, free: 7.891 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001514/0.2121, allocations: 2.794 MB / 337.8 MB, free: 5.676 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.2121, allocations: 37.7 kB / 337.8 MB, free: 5.633 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003875/0.2125, allocations: 0.7755 MB / 338.6 MB, free: 5.023 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.623e-05/0.2126, allocations: 181.4 kB / 338.8 MB, free: 4.859 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001516/0.2127, allocations: 185.6 kB / 339 MB, free: 4.688 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.682e-05/0.2128, allocations: 347.5 kB / 339.3 MB, free: 4.359 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.702e-05/0.2129, allocations: 77.97 kB / 339.4 MB, free: 4.281 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002446/0.2131, allocations: 460 kB / 339.8 MB, free: 3.68 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004589/0.2136, allocations: 0.6512 MB / 340.5 MB, free: 2.879 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/0.2136, allocations: 0 / 340.5 MB, free: 2.879 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0006189/0.2142, allocations: 0.7097 MB / 341.2 MB, free: 2.168 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.2142, allocations: 8 kB / 341.2 MB, free: 2.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-05/0.2143, allocations: 25.44 kB / 341.2 MB, free: 2.137 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.2143, allocations: 16 kB / 341.2 MB, free: 2.121 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004361/0.2147, allocations: 231.8 kB / 341.5 MB, free: 1.895 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.671e-05/0.2148, allocations: 32.81 kB / 341.5 MB, free: 1.863 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004507/0.2152, allocations: 103.2 kB / 341.6 MB, free: 1.762 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.49e-05/0.2153, allocations: 47.92 kB / 341.6 MB, free: 1.715 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.0002579/0.2155, allocations: 169.5 kB / 341.8 MB, free: 1.539 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001749/0.2157, allocations: 255.7 kB / 342 MB, free: 1.289 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001231/0.2169, allocations: 0.7877 MB / 342.8 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.217, allocations: 7.984 kB / 342.8 MB, free: 500 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.217, allocations: 0 / 342.8 MB, free: 500 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.217, allocations: 3.984 kB / 342.8 MB, free: 496 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001277/0.2182, allocations: 1.612 MB / 344.5 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.773e-05/0.2183, allocations: 8.875 kB / 344.5 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002554/0.2185, allocations: 103.8 kB / 344.6 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003314/0.2189, allocations: 405.2 kB / 345 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.2189, allocations: 4 kB / 345 MB, free: 14.74 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.793e-05/0.2189, allocations: 19.92 kB / 345 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.2189, allocations: 0 / 345 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.2189, allocations: 1.312 kB / 345 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005668/0.2195, allocations: 0.6406 MB / 345.6 MB, free: 14.06 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001503/0.2196, allocations: 12 kB / 345.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000321/0.2199, allocations: 27.91 kB / 345.7 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.663e-05/0.22, allocations: 39.88 kB / 345.7 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.213e-05/0.2201, allocations: 19.92 kB / 345.7 MB, free: 13.96 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000895/0.2209, allocations: 1.494 MB / 347.2 MB, free: 12.66 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2209, allocations: 0 / 347.2 MB, free: 12.66 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008609/0.2218, allocations: 0.6008 MB / 347.8 MB, free: 12.06 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.000883/0.2227, allocations: 0.9157 MB / 348.7 MB, free: 11.29 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004736/0.2232, allocations: 478.3 kB / 349.2 MB, free: 10.8 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.904e-05/0.2232, allocations: 50.69 kB / 349.3 MB, free: 10.76 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002452/0.2234, allocations: 270.5 kB / 349.5 MB, free: 10.47 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003282/0.2267, allocations: 6.584 MB / 356.1 MB, free: 2.617 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006919/0.2337, allocations: 4.205 MB / 360.3 MB, free: 14.36 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.2339, allocations: 407.2 kB / 360.7 MB, free: 13.94 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006023/0.2345, allocations: 365.4 kB / 361.1 MB, free: 13.58 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007675/0.2353, allocations: 0.585 MB / 361.6 MB, free: 12.99 MB / 346.7 MB Notification: Performance of SimCode: time 1.082e-06/0.2353, allocations: 4 kB / 361.7 MB, free: 12.98 MB / 346.7 MB Notification: Performance of Templates: time 0.04349/0.2788, allocations: 39.52 MB / 401.2 MB, free: 6.012 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.340703479014337]