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.002428/0.002428, allocations: 99.53 kB / 20.97 MB, free: 3.449 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.002633/0.002633, allocations: 160.8 kB / 24.27 MB, free: 152 kB / 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 1.564/1.564, allocations: 177 MB / 204.4 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.402e-06/1.402e-06, allocations: 0 / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.692e-05/2.832e-05, allocations: 6.312 kB / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01802/0.01805, allocations: 14.6 MB / 286.8 MB, free: 3.152 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1429/0.161, allocations: 19.8 MB / 306.6 MB, free: 9.863 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002119/0.1631, allocations: 136.9 kB / 306.7 MB, free: 9.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002848/0.1659, allocations: 1.166 MB / 307.9 MB, free: 9.203 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007446/0.1734, allocations: 2.481 MB / 310.4 MB, free: 7.641 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004835/0.1782, allocations: 1.438 MB / 311.8 MB, free: 6.555 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00913/0.1873, allocations: 6.92 MB / 318.7 MB, free: 3.109 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006301/0.188, allocations: 262.3 kB / 319 MB, free: 2.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001854/0.1898, allocations: 1.609 MB / 320.6 MB, free: 1.207 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009101/0.1907, allocations: 0.8134 MB / 321.4 MB, free: 400 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001912/0.1909, allocations: 76 kB / 321.5 MB, free: 324 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003879/0.1948, allocations: 1.217 MB / 322.7 MB, free: 15.1 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003974/0.1952, allocations: 337.5 kB / 323 MB, free: 14.77 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001291/0.1965, allocations: 0.7631 MB / 323.8 MB, free: 14 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005894/0.2024, allocations: 3.97 MB / 327.8 MB, free: 10.02 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.2024, allocations: 0 / 327.8 MB, free: 10.02 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2024, allocations: 0 / 327.8 MB, free: 10.02 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.451e-05/0.2025, allocations: 0 / 327.8 MB, free: 10.02 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.007143/0.2096, allocations: 4.239 MB / 332 MB, free: 5.711 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.2096, allocations: 15.98 kB / 332 MB, free: 5.695 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006994/0.2103, allocations: 477.2 kB / 332.5 MB, free: 5.227 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005316/0.2157, allocations: 2.653 MB / 335.1 MB, free: 2.48 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.627e-05/0.2157, allocations: 37 kB / 335.2 MB, free: 2.441 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.2158, allocations: 51.95 kB / 335.2 MB, free: 2.391 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.2172, allocations: 0.6367 MB / 335.9 MB, free: 1.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.2172, allocations: 3.938 kB / 335.9 MB, free: 1.746 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.968e-05/0.2173, allocations: 23.94 kB / 335.9 MB, free: 1.723 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.573e-05/0.2174, allocations: 23.98 kB / 335.9 MB, free: 1.699 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001608/0.219, allocations: 0.707 MB / 336.6 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007195/0.2262, allocations: 3.418 MB / 340 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.2273, allocations: 453.8 kB / 340.5 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009265/0.2283, allocations: 499 kB / 341 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03211/0.2604, allocations: 15.4 MB / 356.4 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008111/0.2612, allocations: 367.5 kB / 356.7 MB, free: 12.41 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.565e-06/0.2612, allocations: 0 / 356.7 MB, free: 12.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.002572/0.2638, allocations: 1.077 MB / 357.8 MB, free: 11.33 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.822e-05/0.2639, allocations: 71.33 kB / 357.9 MB, free: 11.25 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006324/0.2702, allocations: 4.163 MB / 362 MB, free: 7.07 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001094/0.2703, allocations: 33.69 kB / 362.1 MB, free: 7.031 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002105/0.2724, allocations: 1.906 MB / 364 MB, free: 5.117 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002333/0.2726, allocations: 182.6 kB / 364.2 MB, free: 4.938 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003924/0.273, allocations: 252 kB / 364.4 MB, free: 4.684 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003188/0.2733, allocations: 0.5238 MB / 364.9 MB, free: 4.152 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005749/0.2739, allocations: 221.9 kB / 365.1 MB, free: 3.934 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00114/0.2751, allocations: 0.7603 MB / 365.9 MB, free: 2.93 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001696/0.2768, allocations: 1.037 MB / 366.9 MB, free: 1.652 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.348e-06/0.2768, allocations: 4 kB / 366.9 MB, free: 1.648 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002529/0.2793, allocations: 1.267 MB / 368.2 MB, free: 388 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.2793, allocations: 15.98 kB / 368.2 MB, free: 372 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001248/0.2794, allocations: 80 kB / 368.3 MB, free: 292 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.234e-05/0.2795, allocations: 16 kB / 368.3 MB, free: 276 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007471/0.2802, allocations: 204.8 kB / 368.5 MB, free: 72 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.381e-05/0.2803, allocations: 31.8 kB / 368.5 MB, free: 40 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/0.2813, allocations: 99.5 kB / 368.6 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.2814, allocations: 68 kB / 368.7 MB, free: 15.87 MB / 330.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.0009646/0.2824, allocations: 496.2 kB / 369.2 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006389/0.283, allocations: 430.2 kB / 369.6 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002879/0.2859, allocations: 1.173 MB / 370.8 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.2859, allocations: 8 kB / 370.8 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.2859, allocations: 3.938 kB / 370.8 MB, free: 13.76 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.2859, allocations: 3.984 kB / 370.8 MB, free: 13.76 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004919/0.2909, allocations: 2.628 MB / 373.4 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001136/0.291, allocations: 75.98 kB / 373.5 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004875/0.2915, allocations: 95.62 kB / 373.6 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.717e-06/0.2915, allocations: 4 kB / 373.6 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.16e-05/0.2915, allocations: 35.94 kB / 373.6 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.2915, allocations: 0 / 373.6 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.2916, allocations: 4 kB / 373.6 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002568/0.2941, allocations: 1.353 MB / 375 MB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/0.2953, allocations: 455 kB / 375.4 MB, free: 9.035 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003214/0.2956, allocations: 11.94 kB / 375.5 MB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006532/0.2962, allocations: 19.98 kB / 375.5 MB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.2964, allocations: 63.92 kB / 375.5 MB, free: 8.941 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.644e-05/0.2965, allocations: 36 kB / 375.6 MB, free: 8.906 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003834/0.3003, allocations: 2.342 MB / 377.9 MB, free: 6.57 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3003, allocations: 4.031 kB / 377.9 MB, free: 6.566 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001655/0.302, allocations: 0.6047 MB / 378.5 MB, free: 5.961 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.001622/0.3036, allocations: 0.8316 MB / 379.4 MB, free: 5.121 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001773/0.3054, allocations: 0.7945 MB / 380.1 MB, free: 4.301 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3054, allocations: 0 / 380.1 MB, free: 4.301 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007877/0.3062, allocations: 431.7 kB / 380.6 MB, free: 3.848 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003065/0.3092, allocations: 0.6536 MB / 381.2 MB, free: 3.203 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007762/0.317, allocations: 4.613 MB / 385.8 MB, free: 14.52 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001585/0.3186, allocations: 1.162 MB / 387 MB, free: 13.32 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001198/0.3198, allocations: 361.3 kB / 387.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002793/0.3201, allocations: 152.5 kB / 387.5 MB, free: 12.81 MB / 346.7 MB Notification: Performance of SimCode: time 1.493e-06/0.3201, allocations: 0 / 387.5 MB, free: 12.81 MB / 346.7 MB Notification: Performance of Templates: time 0.06481/0.3849, allocations: 33.28 MB / 420.8 MB, free: 12.04 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.959039048990235]