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.0008874/0.0008874, allocations: 81.81 kB / 21.42 MB, free: 3.07 MB / 18.57 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.0009052/0.0009052, allocations: 164.4 kB / 24.82 MB, free: 9.324 MB / 18.57 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.9438/0.9438, allocations: 177 MB / 205.1 MB, free: 5.445 MB / 186.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 2.034e-06/2.034e-06, allocations: 3.938 kB / 273.3 MB, free: 1.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.799e-05/2.003e-05, allocations: 5.266 kB / 273.3 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01386/0.01388, allocations: 14.26 MB / 287.6 MB, free: 2.887 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.131/0.1449, allocations: 19.49 MB / 307.1 MB, free: 10.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001248/0.1461, allocations: 136.3 kB / 307.2 MB, free: 9.957 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001888/0.148, allocations: 1.169 MB / 308.4 MB, free: 9.387 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00532/0.1533, allocations: 2.479 MB / 310.8 MB, free: 7.824 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003066/0.1564, allocations: 1.445 MB / 312.3 MB, free: 6.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006613/0.163, allocations: 7.041 MB / 319.3 MB, free: 2.988 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006305/0.1636, allocations: 262.3 kB / 319.6 MB, free: 2.703 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003024/0.1667, allocations: 3.104 MB / 322.7 MB, free: 15.59 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001126/0.1678, allocations: 0.8446 MB / 323.5 MB, free: 14.75 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002501/0.168, allocations: 72 kB / 323.6 MB, free: 14.68 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003319/0.1714, allocations: 1.21 MB / 324.8 MB, free: 13.46 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003362/0.1717, allocations: 349.4 kB / 325.1 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001277/0.173, allocations: 0.7755 MB / 325.9 MB, free: 12.34 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004231/0.1772, allocations: 2.871 MB / 328.8 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1772, allocations: 0 / 328.8 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1772, allocations: 0 / 328.8 MB, free: 9.461 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.759e-05/0.1773, allocations: 0 / 328.8 MB, free: 9.461 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.00357/0.1809, allocations: 4.133 MB / 332.9 MB, free: 5.262 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.1809, allocations: 15.98 kB / 332.9 MB, free: 5.246 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004188/0.1813, allocations: 473.2 kB / 333.4 MB, free: 4.781 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002067/0.1834, allocations: 2.567 MB / 336 MB, free: 2.121 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.1834, allocations: 37 kB / 336 MB, free: 2.082 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.76e-05/0.1835, allocations: 51.95 kB / 336.1 MB, free: 2.031 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005641/0.1841, allocations: 492.7 kB / 336.5 MB, free: 1.539 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.1841, allocations: 3.984 kB / 336.5 MB, free: 1.535 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.257e-05/0.1841, allocations: 23.94 kB / 336.6 MB, free: 1.512 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.1841, allocations: 23.98 kB / 336.6 MB, free: 1.488 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004333/0.1846, allocations: 424.3 kB / 337 MB, free: 1.074 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002711/0.1873, allocations: 2.372 MB / 339.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003407/0.1876, allocations: 285.4 kB / 339.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003138/0.1879, allocations: 369.7 kB / 340 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01688/0.2048, allocations: 15.3 MB / 355.3 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003035/0.2051, allocations: 256.6 kB / 355.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.874e-06/0.2051, allocations: 0 / 355.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.001073/0.2062, allocations: 0.8385 MB / 356.4 MB, free: 13.24 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.2062, allocations: 71.39 kB / 356.5 MB, free: 13.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00228/0.2085, allocations: 3.286 MB / 359.8 MB, free: 9.859 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.583e-05/0.2085, allocations: 37.7 kB / 359.8 MB, free: 9.816 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001019/0.2096, allocations: 1.788 MB / 361.6 MB, free: 8.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.2097, allocations: 178.5 kB / 361.8 MB, free: 7.844 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000186/0.2098, allocations: 232 kB / 362 MB, free: 7.609 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.21, allocations: 0.5159 MB / 362.5 MB, free: 7.086 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.2101, allocations: 105.9 kB / 362.6 MB, free: 6.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005921/0.2107, allocations: 0.6236 MB / 363.2 MB, free: 6.121 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000558/0.2113, allocations: 0.8186 MB / 364 MB, free: 5.062 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.2113, allocations: 7.984 kB / 364.1 MB, free: 5.055 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0008851/0.2122, allocations: 1.033 MB / 365.1 MB, free: 4.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.2122, allocations: 12 kB / 365.1 MB, free: 4.008 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.545e-05/0.2122, allocations: 83.31 kB / 365.2 MB, free: 3.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.2123, allocations: 16 kB / 365.2 MB, free: 3.914 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003728/0.2126, allocations: 204.4 kB / 365.4 MB, free: 3.715 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.678e-05/0.2126, allocations: 31.86 kB / 365.4 MB, free: 3.684 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004859/0.2131, allocations: 103.2 kB / 365.5 MB, free: 3.582 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.824e-05/0.2132, allocations: 60 kB / 365.6 MB, free: 3.523 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.0002968/0.2135, allocations: 220.2 kB / 365.8 MB, free: 3.297 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002489/0.2137, allocations: 429.4 kB / 366.2 MB, free: 2.875 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001151/0.2149, allocations: 0.9997 MB / 367.2 MB, free: 1.863 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.2149, allocations: 8 kB / 367.2 MB, free: 1.855 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-06/0.2149, allocations: 0 / 367.2 MB, free: 1.855 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.2149, allocations: 11.92 kB / 367.2 MB, free: 1.844 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0019/0.2168, allocations: 2.185 MB / 369.4 MB, free: 15.6 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.272e-05/0.2169, allocations: 71.98 kB / 369.5 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002191/0.2171, allocations: 83.88 kB / 369.6 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.2171, allocations: 4 kB / 369.6 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.315e-05/0.2171, allocations: 28 kB / 369.6 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.2171, allocations: 8 kB / 369.6 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2171, allocations: 4 kB / 369.6 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.2182, allocations: 1.056 MB / 370.7 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004133/0.2186, allocations: 459 kB / 371.1 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.2188, allocations: 11.98 kB / 371.1 MB, free: 13.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003234/0.2191, allocations: 27.92 kB / 371.2 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.158e-05/0.2192, allocations: 59.92 kB / 371.2 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.105e-05/0.2192, allocations: 32 kB / 371.3 MB, free: 13.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001075/0.2203, allocations: 1.705 MB / 373 MB, free: 12.04 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.2203, allocations: 4.031 kB / 373 MB, free: 12.03 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008939/0.2212, allocations: 0.6047 MB / 373.6 MB, free: 11.43 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.000877/0.2221, allocations: 0.9185 MB / 374.5 MB, free: 10.5 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005437/0.2226, allocations: 0.5822 MB / 375.1 MB, free: 9.895 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2226, allocations: 0 / 375.1 MB, free: 9.895 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002479/0.2229, allocations: 336.4 kB / 375.4 MB, free: 9.539 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.2242, allocations: 0.6622 MB / 376.1 MB, free: 8.879 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00377/0.228, allocations: 4.307 MB / 380.4 MB, free: 4.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000247/0.2282, allocations: 402.4 kB / 380.8 MB, free: 4.086 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000589/0.2288, allocations: 361.3 kB / 381.1 MB, free: 3.727 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008386/0.2297, allocations: 0.7166 MB / 381.8 MB, free: 3.008 MB / 330.7 MB Notification: Performance of SimCode: time 7.91e-07/0.2297, allocations: 3.938 kB / 381.8 MB, free: 3.004 MB / 330.7 MB Notification: Performance of Templates: time 0.04554/0.2752, allocations: 38.44 MB / 420.3 MB, free: 13.09 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.578428409062326]