Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 81.27 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 147.1 kB / 23.93 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 173.4 MB / 200.4 MB, free: 12.89 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.173e-05/2.305e-05, allocations: 2.281 kB / 318.9 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01368/0.01371, allocations: 12.88 MB / 331.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02694/0.04065, allocations: 17.95 MB / 349.7 MB, free: 12.78 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003071/0.04372, allocations: 138.5 kB / 349.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003798/0.04752, allocations: 1.164 MB / 351 MB, free: 11.47 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008845/0.05636, allocations: 2.483 MB / 353.5 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004937/0.0613, allocations: 1.433 MB / 355 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01196/0.07326, allocations: 6.834 MB / 361.8 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000781/0.07404, allocations: 270.3 kB / 362.1 MB, free: 384 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002489/0.07653, allocations: 1.601 MB / 363.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001287/0.07782, allocations: 0.8212 MB / 364.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002086/0.07802, allocations: 76 kB / 364.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003668/0.08169, allocations: 1.202 MB / 365.8 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003584/0.08205, allocations: 333.5 kB / 366.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001311/0.08336, allocations: 0.7709 MB / 366.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006082/0.08944, allocations: 3.951 MB / 370.8 MB, free: 7.602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.08945, allocations: 3.938 kB / 370.8 MB, free: 7.598 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.08945, allocations: 0 / 370.8 MB, free: 7.598 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.977e-05/0.08954, allocations: 0 / 370.8 MB, free: 7.598 MB / 334.1 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.006049/0.09559, allocations: 3.844 MB / 374.6 MB, free: 3.695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.09564, allocations: 8.922 kB / 374.7 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005223/0.09616, allocations: 437.2 kB / 375.1 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003596/0.09976, allocations: 2.349 MB / 377.4 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.393e-05/0.0998, allocations: 40.98 kB / 377.5 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.09994, allocations: 59.89 kB / 377.5 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.1014, allocations: 0.7304 MB / 378.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.1014, allocations: 7.938 kB / 378.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-05/0.1015, allocations: 20 kB / 378.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.59e-05/0.1015, allocations: 19.98 kB / 378.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001703/0.1032, allocations: 0.8202 MB / 379.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005265/0.1085, allocations: 2.793 MB / 381.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.1098, allocations: 0.5164 MB / 382.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001044/0.1108, allocations: 0.5692 MB / 383 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02597/0.1368, allocations: 13.7 MB / 396.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008233/0.1376, allocations: 361.8 kB / 397.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.625e-06/0.1376, allocations: 0 / 397.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002474/0.1401, allocations: 1.128 MB / 398.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.1401, allocations: 67.33 kB / 398.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003899/0.144, allocations: 3.102 MB / 401.4 MB, free: 8.398 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.801e-05/0.1441, allocations: 37.7 kB / 401.4 MB, free: 8.355 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001551/0.1457, allocations: 1.589 MB / 403 MB, free: 6.758 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.1458, allocations: 170.6 kB / 403.2 MB, free: 6.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003175/0.1462, allocations: 222.4 kB / 403.4 MB, free: 6.367 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.1463, allocations: 341.9 kB / 403.7 MB, free: 6.027 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006404/0.147, allocations: 237.9 kB / 403.9 MB, free: 5.793 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009465/0.1479, allocations: 0.6018 MB / 404.5 MB, free: 5.016 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001652/0.1496, allocations: 0.8984 MB / 405.4 MB, free: 3.945 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.1496, allocations: 4 kB / 405.4 MB, free: 3.941 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002384/0.1519, allocations: 1.264 MB / 406.7 MB, free: 2.668 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.947e-05/0.152, allocations: 19.06 kB / 406.7 MB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001249/0.1521, allocations: 80 kB / 406.8 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.015e-05/0.1521, allocations: 16 kB / 406.8 MB, free: 2.559 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008244/0.153, allocations: 199.6 kB / 407 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.152e-05/0.153, allocations: 32.22 kB / 407 MB, free: 2.332 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009772/0.154, allocations: 115.3 kB / 407.2 MB, free: 2.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.1541, allocations: 68 kB / 407.2 MB, free: 2.152 MB / 366.1 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.0007724/0.1548, allocations: 445.5 kB / 407.7 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004133/0.1553, allocations: 425.3 kB / 408.1 MB, free: 1.289 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002788/0.1581, allocations: 1.216 MB / 409.3 MB, free: 64 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.1581, allocations: 4 kB / 409.3 MB, free: 60 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1581, allocations: 0 / 409.3 MB, free: 60 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.525e-06/0.1581, allocations: 3.984 kB / 409.3 MB, free: 56 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003506/0.1616, allocations: 1.981 MB / 411.3 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001074/0.1617, allocations: 79.92 kB / 411.4 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005101/0.1622, allocations: 87.92 kB / 411.4 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.1622, allocations: 8.062 kB / 411.4 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-05/0.1623, allocations: 31.94 kB / 411.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.304e-06/0.1623, allocations: 7.984 kB / 411.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1623, allocations: 0 / 411.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002539/0.1648, allocations: 1.345 MB / 412.8 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000775/0.1656, allocations: 439 kB / 413.3 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00031/0.1659, allocations: 12 kB / 413.3 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007335/0.1666, allocations: 35.89 kB / 413.3 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/0.1668, allocations: 59.94 kB / 413.4 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.003e-05/0.1669, allocations: 47.98 kB / 413.4 MB, free: 11.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002797/0.1697, allocations: 2.007 MB / 415.4 MB, free: 9.863 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1697, allocations: 0 / 415.4 MB, free: 9.863 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001346/0.171, allocations: 0.593 MB / 416 MB, free: 9.27 MB / 382.1 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.001248/0.1723, allocations: 0.8153 MB / 416.8 MB, free: 8.449 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001707/0.174, allocations: 0.7792 MB / 417.6 MB, free: 7.645 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.174, allocations: 3.938 kB / 417.6 MB, free: 7.641 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008307/0.1748, allocations: 431.3 kB / 418 MB, free: 7.195 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002724/0.1775, allocations: 0.6348 MB / 418.7 MB, free: 6.559 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006779/0.1843, allocations: 4.506 MB / 423.2 MB, free: 2.008 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001205/0.1855, allocations: 1.162 MB / 424.3 MB, free: 0.8086 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001082/0.1866, allocations: 361.2 kB / 424.7 MB, free: 460 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/0.1869, allocations: 152.5 kB / 424.8 MB, free: 308 kB / 382.1 MB Notification: Performance of SimCode: time 1.162e-06/0.1869, allocations: 0 / 424.8 MB, free: 308 kB / 382.1 MB Notification: Performance of Templates: time 0.06045/0.2473, allocations: 33.07 MB / 457.9 MB, free: 15.77 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.372782334685326]