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.001243/0.001243, allocations: 87.67 kB / 21.19 MB, free: 3.371 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.001074/0.001074, allocations: 160.5 kB / 24.56 MB, free: 12 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 0.9174/0.9174, allocations: 177 MB / 204.8 MB, free: 5.219 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 1.624e-06/1.624e-06, allocations: 0 / 272.9 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.735e-05/2.898e-05, allocations: 2.312 kB / 272.9 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0125/0.01253, allocations: 14.66 MB / 287.6 MB, free: 2.555 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1224/0.1349, allocations: 19.85 MB / 307.4 MB, free: 9.414 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001443/0.1364, allocations: 137.2 kB / 307.5 MB, free: 9.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002613/0.139, allocations: 1.176 MB / 308.7 MB, free: 8.746 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005837/0.1448, allocations: 2.477 MB / 311.2 MB, free: 7.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003844/0.1486, allocations: 1.447 MB / 312.6 MB, free: 6.086 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006781/0.1554, allocations: 7.037 MB / 319.7 MB, free: 2.398 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000576/0.156, allocations: 266.3 kB / 319.9 MB, free: 2.109 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002847/0.1588, allocations: 3.104 MB / 323 MB, free: 15 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009887/0.1598, allocations: 0.8447 MB / 323.9 MB, free: 14.15 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001975/0.16, allocations: 72 kB / 324 MB, free: 14.08 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003063/0.1631, allocations: 1.217 MB / 325.2 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002363/0.1633, allocations: 345.5 kB / 325.5 MB, free: 12.52 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009004/0.1642, allocations: 0.7715 MB / 326.3 MB, free: 11.75 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004011/0.1682, allocations: 2.868 MB / 329.2 MB, free: 8.871 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.1683, allocations: 3.984 kB / 329.2 MB, free: 8.867 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1683, allocations: 0 / 329.2 MB, free: 8.867 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.971e-05/0.1684, allocations: 0 / 329.2 MB, free: 8.867 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.00345/0.1718, allocations: 4.091 MB / 333.3 MB, free: 4.711 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.1719, allocations: 11.98 kB / 333.3 MB, free: 4.699 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004588/0.1723, allocations: 473.2 kB / 333.7 MB, free: 4.234 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002401/0.1747, allocations: 2.567 MB / 336.3 MB, free: 1.574 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.1747, allocations: 37 kB / 336.3 MB, free: 1.535 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.475e-05/0.1748, allocations: 59.94 kB / 336.4 MB, free: 1.477 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007042/0.1755, allocations: 0.532 MB / 336.9 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.1755, allocations: 3.938 kB / 336.9 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.434e-05/0.1756, allocations: 19.98 kB / 336.9 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.131e-05/0.1756, allocations: 20 kB / 337 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005735/0.1762, allocations: 490.3 kB / 337.4 MB, free: 428 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003194/0.1794, allocations: 2.934 MB / 340.4 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004246/0.1798, allocations: 317.4 kB / 340.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003998/0.1802, allocations: 413.8 kB / 341.1 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01532/0.1955, allocations: 15.24 MB / 356.3 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003413/0.1959, allocations: 279.7 kB / 356.6 MB, free: 12.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.274e-06/0.1959, allocations: 4 kB / 356.6 MB, free: 12.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009718/0.1968, allocations: 0.8854 MB / 357.5 MB, free: 11.88 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.1969, allocations: 63.34 kB / 357.6 MB, free: 11.8 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002489/0.1994, allocations: 3.323 MB / 360.9 MB, free: 8.469 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.071e-05/0.1994, allocations: 37.7 kB / 360.9 MB, free: 8.426 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001033/0.2004, allocations: 1.765 MB / 362.7 MB, free: 6.652 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.2006, allocations: 170.6 kB / 362.8 MB, free: 6.484 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/0.2007, allocations: 240 kB / 363.1 MB, free: 6.242 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000359/0.2011, allocations: 0.5043 MB / 363.6 MB, free: 5.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001893/0.2013, allocations: 129.9 kB / 363.7 MB, free: 5.602 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003841/0.2017, allocations: 0.6549 MB / 364.4 MB, free: 4.707 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006503/0.2023, allocations: 0.8539 MB / 365.2 MB, free: 3.613 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.2023, allocations: 4 kB / 365.2 MB, free: 3.609 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001016/0.2034, allocations: 1.091 MB / 366.3 MB, free: 2.512 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.2034, allocations: 12.97 kB / 366.3 MB, free: 2.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-05/0.2034, allocations: 85.05 kB / 366.4 MB, free: 2.418 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.175e-05/0.2035, allocations: 16 kB / 366.4 MB, free: 2.402 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004009/0.2039, allocations: 211.6 kB / 366.6 MB, free: 2.195 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.669e-05/0.2039, allocations: 23.94 kB / 366.7 MB, free: 2.172 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004807/0.2044, allocations: 111.2 kB / 366.8 MB, free: 2.062 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.136e-05/0.2044, allocations: 64 kB / 366.8 MB, free: 2 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.0003063/0.2047, allocations: 216.2 kB / 367 MB, free: 1.777 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002375/0.205, allocations: 433.4 kB / 367.5 MB, free: 1.352 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001218/0.2062, allocations: 1.032 MB / 368.5 MB, free: 328 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.2062, allocations: 8 kB / 368.5 MB, free: 320 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.2062, allocations: 9.25 kB / 368.5 MB, free: 312 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2062, allocations: 0 / 368.5 MB, free: 312 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/0.2084, allocations: 2.14 MB / 370.6 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.036e-05/0.2085, allocations: 68 kB / 370.7 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002362/0.2087, allocations: 83.94 kB / 370.8 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.2087, allocations: 4.062 kB / 370.8 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.925e-05/0.2088, allocations: 39.92 kB / 370.8 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.2088, allocations: 7.938 kB / 370.8 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2088, allocations: 0 / 370.8 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000913/0.2097, allocations: 1.099 MB / 371.9 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004025/0.2101, allocations: 455.9 kB / 372.4 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001763/0.2103, allocations: 15.94 kB / 372.4 MB, free: 12.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003301/0.2106, allocations: 19.98 kB / 372.4 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.2107, allocations: 59.92 kB / 372.5 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.46e-05/0.2108, allocations: 47.95 kB / 372.5 MB, free: 12.19 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001513/0.2123, allocations: 1.823 MB / 374.4 MB, free: 10.37 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2123, allocations: 0 / 374.4 MB, free: 10.37 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008839/0.2132, allocations: 0.6008 MB / 375 MB, free: 9.77 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.0008099/0.214, allocations: 0.832 MB / 375.8 MB, free: 8.93 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006782/0.2147, allocations: 0.6229 MB / 376.4 MB, free: 8.281 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2147, allocations: 0 / 376.4 MB, free: 8.281 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002871/0.2149, allocations: 351.8 kB / 376.8 MB, free: 7.91 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001734/0.2167, allocations: 0.6606 MB / 377.4 MB, free: 7.266 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003947/0.2206, allocations: 4.317 MB / 381.7 MB, free: 2.879 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.2209, allocations: 402.4 kB / 382.1 MB, free: 2.465 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006267/0.2215, allocations: 357.3 kB / 382.5 MB, free: 2.109 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001555/0.2217, allocations: 156.5 kB / 382.6 MB, free: 1.957 MB / 330.7 MB Notification: Performance of SimCode: time 1.123e-06/0.2217, allocations: 0 / 382.6 MB, free: 1.957 MB / 330.7 MB Notification: Performance of Templates: time 0.05488/0.2765, allocations: 39.87 MB / 422.5 MB, free: 10.58 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.483884109184146]