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.00185/0.00185, allocations: 89.53 kB / 20.69 MB, free: 1.02 MB / 14.72 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.001413/0.001413, allocations: 158 kB / 23.95 MB, free: 4.152 MB / 14.72 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.467/1.467, allocations: 177 MB / 204.1 MB, free: 9.184 MB / 190.1 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.142e-06/1.142e-06, allocations: 0 / 325 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.996e-05/2.11e-05, allocations: 3.562 kB / 325 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01457/0.01459, allocations: 12.9 MB / 337.9 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02594/0.04053, allocations: 17.98 MB / 355.9 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002927/0.04346, allocations: 138.6 kB / 356 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003051/0.04651, allocations: 1.168 MB / 357.2 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007656/0.05417, allocations: 2.475 MB / 359.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005482/0.05965, allocations: 1.445 MB / 361.1 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01182/0.07147, allocations: 6.916 MB / 368 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007728/0.07224, allocations: 266.3 kB / 368.3 MB, free: 9.645 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002544/0.07478, allocations: 1.609 MB / 369.9 MB, free: 8.031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001327/0.07611, allocations: 0.8095 MB / 370.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002289/0.07634, allocations: 80 kB / 370.8 MB, free: 7.141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003577/0.07992, allocations: 1.213 MB / 372 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003977/0.08031, allocations: 341.4 kB / 372.3 MB, free: 5.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001325/0.08164, allocations: 0.7593 MB / 373.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005483/0.08712, allocations: 3.959 MB / 377 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.08713, allocations: 0 / 377 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.08713, allocations: 0 / 377 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.622e-05/0.08718, allocations: 3.938 kB / 377 MB, free: 0.8516 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.005862/0.09305, allocations: 3.843 MB / 380.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.09309, allocations: 15.98 kB / 380.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005576/0.09365, allocations: 433.2 kB / 381.3 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003727/0.09737, allocations: 2.341 MB / 383.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.54e-05/0.09742, allocations: 37 kB / 383.7 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001432/0.09756, allocations: 63.81 kB / 383.8 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.0991, allocations: 0.7304 MB / 384.5 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.09912, allocations: 4 kB / 384.5 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.839e-05/0.0992, allocations: 16 kB / 384.5 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.435e-05/0.09922, allocations: 23.98 kB / 384.5 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001755/0.101, allocations: 0.8124 MB / 385.4 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005793/0.1068, allocations: 2.8 MB / 388.2 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/0.1081, allocations: 0.528 MB / 388.7 MB, free: 4.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001064/0.1092, allocations: 0.5692 MB / 389.3 MB, free: 4.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02676/0.1359, allocations: 13.71 MB / 403 MB, free: 6.324 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008992/0.1368, allocations: 370 kB / 403.3 MB, free: 5.945 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.306e-06/0.1368, allocations: 0 / 403.3 MB, free: 5.945 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.00265/0.1395, allocations: 1.139 MB / 404.5 MB, free: 4.801 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.752e-05/0.1395, allocations: 59.41 kB / 404.5 MB, free: 4.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00413/0.1437, allocations: 3.102 MB / 407.6 MB, free: 1.629 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.444e-05/0.1437, allocations: 41.7 kB / 407.7 MB, free: 1.582 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001548/0.1453, allocations: 1.582 MB / 409.3 MB, free: 15.99 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001965/0.1455, allocations: 174.6 kB / 409.4 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003285/0.1458, allocations: 222.4 kB / 409.6 MB, free: 15.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.146, allocations: 341.9 kB / 410 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006564/0.1467, allocations: 241.8 kB / 410.2 MB, free: 15.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009619/0.1476, allocations: 0.6057 MB / 410.8 MB, free: 14.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00168/0.1493, allocations: 0.8984 MB / 411.7 MB, free: 13.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/0.1493, allocations: 4 kB / 411.7 MB, free: 13.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002505/0.1518, allocations: 1.264 MB / 413 MB, free: 11.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.995e-05/0.1518, allocations: 15.75 kB / 413 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001239/0.152, allocations: 83.98 kB / 413.1 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.301e-05/0.152, allocations: 16 kB / 413.1 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007869/0.1528, allocations: 203.6 kB / 413.3 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.591e-05/0.1528, allocations: 24.16 kB / 413.3 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.1539, allocations: 119.2 kB / 413.4 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.154, allocations: 68 kB / 413.5 MB, free: 11.38 MB / 382.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.0008903/0.1549, allocations: 448.1 kB / 413.9 MB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004796/0.1554, allocations: 421.3 kB / 414.3 MB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002956/0.1584, allocations: 1.212 MB / 415.6 MB, free: 9.289 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-06/0.1584, allocations: 4 kB / 415.6 MB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1584, allocations: 0 / 415.6 MB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.1584, allocations: 3.984 kB / 415.6 MB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003655/0.162, allocations: 1.981 MB / 417.5 MB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001015/0.1621, allocations: 68 kB / 417.6 MB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005357/0.1627, allocations: 91.86 kB / 417.7 MB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.1627, allocations: 8.062 kB / 417.7 MB, free: 7.086 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.629e-05/0.1628, allocations: 39.92 kB / 417.8 MB, free: 7.047 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.1628, allocations: 4 kB / 417.8 MB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.1628, allocations: 0 / 417.8 MB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002572/0.1653, allocations: 1.344 MB / 419.1 MB, free: 5.672 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008342/0.1662, allocations: 435.1 kB / 419.5 MB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003392/0.1665, allocations: 15.94 kB / 419.5 MB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000751/0.1673, allocations: 27.97 kB / 419.6 MB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/0.1674, allocations: 59.92 kB / 419.6 MB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.835e-05/0.1675, allocations: 44.05 kB / 419.7 MB, free: 5.102 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002897/0.1704, allocations: 2.014 MB / 421.7 MB, free: 3.094 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1704, allocations: 0 / 421.7 MB, free: 3.094 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001447/0.1719, allocations: 0.6008 MB / 422.3 MB, free: 2.492 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.001313/0.1732, allocations: 0.8149 MB / 423.1 MB, free: 1.668 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001775/0.1749, allocations: 0.7767 MB / 423.9 MB, free: 0.8711 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1749, allocations: 4 kB / 423.9 MB, free: 0.8672 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008554/0.1758, allocations: 426.9 kB / 424.3 MB, free: 432 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002857/0.1787, allocations: 0.636 MB / 424.9 MB, free: 15.78 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006899/0.1856, allocations: 4.498 MB / 429.4 MB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001193/0.1868, allocations: 1.169 MB / 430.6 MB, free: 10.03 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00106/0.1878, allocations: 361.3 kB / 431 MB, free: 9.668 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002604/0.1881, allocations: 152.5 kB / 431.1 MB, free: 9.52 MB / 398.1 MB Notification: Performance of SimCode: time 1.152e-06/0.1881, allocations: 0 / 431.1 MB, free: 9.52 MB / 398.1 MB Notification: Performance of Templates: time 0.05985/0.2479, allocations: 33.09 MB / 464.2 MB, free: 8.91 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] 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.663010690361261]