Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008472/0.0008472, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003655/0.003655, allocations: 164.8 kB / 24.7 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8623/0.8623, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.904e-05/2.095e-05, allocations: 4.672 kB / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.007641/0.007662, allocations: 12.92 MB / 338.7 MB, free: 2.465 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01474/0.0224, allocations: 17.98 MB / 356.7 MB, free: 424 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001278/0.02368, allocations: 134.5 kB / 356.9 MB, free: 288 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00178/0.02546, allocations: 1.168 MB / 358 MB, free: 15.11 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003906/0.02936, allocations: 2.475 MB / 360.5 MB, free: 12.61 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002338/0.0317, allocations: 1.445 MB / 361.9 MB, free: 11.16 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005388/0.03709, allocations: 6.897 MB / 368.8 MB, free: 4.238 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004316/0.03752, allocations: 274.2 kB / 369.1 MB, free: 3.945 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001336/0.03886, allocations: 1.609 MB / 370.7 MB, free: 2.332 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006874/0.03954, allocations: 0.8134 MB / 371.5 MB, free: 1.516 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001014/0.03964, allocations: 76 kB / 371.6 MB, free: 1.441 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001942/0.04159, allocations: 1.217 MB / 372.8 MB, free: 228 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001717/0.04176, allocations: 337.5 kB / 373.1 MB, free: 15.89 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005361/0.04229, allocations: 0.7592 MB / 373.9 MB, free: 15.13 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002778/0.04507, allocations: 3.951 MB / 377.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.04507, allocations: 0 / 377.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.04508, allocations: 0 / 377.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.515e-05/0.0451, allocations: 4 kB / 377.9 MB, free: 11.16 MB / 346.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.002833/0.04793, allocations: 3.839 MB / 381.7 MB, free: 7.262 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.04797, allocations: 16.02 kB / 381.7 MB, free: 7.246 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002679/0.04824, allocations: 437.2 kB / 382.1 MB, free: 6.816 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002005/0.05025, allocations: 2.345 MB / 384.5 MB, free: 4.375 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.05027, allocations: 33 kB / 384.5 MB, free: 4.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.299e-05/0.05035, allocations: 63.89 kB / 384.6 MB, free: 4.277 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008218/0.05117, allocations: 0.7382 MB / 385.3 MB, free: 3.535 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.05119, allocations: 0 / 385.3 MB, free: 3.535 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.24e-05/0.05123, allocations: 20 kB / 385.3 MB, free: 3.516 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/0.05124, allocations: 19.98 kB / 385.4 MB, free: 3.496 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008638/0.05211, allocations: 0.8202 MB / 386.2 MB, free: 2.68 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00283/0.05494, allocations: 2.796 MB / 389 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006403/0.05558, allocations: 0.5203 MB / 389.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000541/0.05612, allocations: 0.5728 MB / 390.1 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01383/0.06995, allocations: 13.71 MB / 403.8 MB, free: 0.625 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004414/0.07039, allocations: 373.9 kB / 404.1 MB, free: 252 kB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.324e-06/0.07039, allocations: 0 / 404.1 MB, free: 252 kB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001498/0.07189, allocations: 1.131 MB / 405.3 MB, free: 15.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.07193, allocations: 63.41 kB / 405.3 MB, free: 15.03 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002278/0.07421, allocations: 3.102 MB / 408.4 MB, free: 11.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/0.07424, allocations: 37.7 kB / 408.5 MB, free: 11.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008249/0.07507, allocations: 1.582 MB / 410.1 MB, free: 10.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.42e-05/0.07516, allocations: 174.6 kB / 410.2 MB, free: 10.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001755/0.07534, allocations: 226.4 kB / 410.5 MB, free: 9.898 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.226e-05/0.07542, allocations: 337.9 kB / 410.8 MB, free: 9.562 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003098/0.07573, allocations: 241.9 kB / 411 MB, free: 9.324 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004558/0.07618, allocations: 0.6056 MB / 411.6 MB, free: 8.547 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.07723, allocations: 0.8945 MB / 412.5 MB, free: 7.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.07723, allocations: 4 kB / 412.5 MB, free: 7.477 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001125/0.07836, allocations: 1.267 MB / 413.8 MB, free: 6.203 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.07838, allocations: 15.94 kB / 413.8 MB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.918e-05/0.07844, allocations: 83.98 kB / 413.9 MB, free: 6.105 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.33e-05/0.07846, allocations: 16 kB / 413.9 MB, free: 6.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003604/0.07882, allocations: 200.2 kB / 414.1 MB, free: 5.895 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.633e-05/0.07884, allocations: 27.86 kB / 414.1 MB, free: 5.867 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000475/0.07931, allocations: 115.2 kB / 414.2 MB, free: 5.754 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.932e-05/0.07938, allocations: 67.98 kB / 414.3 MB, free: 5.688 MB / 378.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.0004442/0.07983, allocations: 454.5 kB / 414.8 MB, free: 5.234 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002093/0.08004, allocations: 421.4 kB / 415.2 MB, free: 4.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001432/0.08147, allocations: 1.212 MB / 416.4 MB, free: 3.598 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.08147, allocations: 8 kB / 416.4 MB, free: 3.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.08148, allocations: 0 / 416.4 MB, free: 3.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.08148, allocations: 0 / 416.4 MB, free: 3.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001892/0.08338, allocations: 1.985 MB / 418.4 MB, free: 1.555 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.84e-05/0.08342, allocations: 71.94 kB / 418.4 MB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002285/0.08365, allocations: 91.92 kB / 418.5 MB, free: 1.395 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.08366, allocations: 4 kB / 418.5 MB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.455e-05/0.08369, allocations: 35.98 kB / 418.6 MB, free: 1.355 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.08369, allocations: 0 / 418.6 MB, free: 1.355 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.0837, allocations: 4 kB / 418.6 MB, free: 1.352 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001479/0.08518, allocations: 1.336 MB / 419.9 MB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004031/0.08558, allocations: 439.1 kB / 420.3 MB, free: 15.56 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001393/0.08572, allocations: 11.94 kB / 420.3 MB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003392/0.08606, allocations: 27.97 kB / 420.4 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.08616, allocations: 67.98 kB / 420.4 MB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.314e-05/0.0862, allocations: 36 kB / 420.5 MB, free: 15.42 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001518/0.08772, allocations: 2.007 MB / 422.5 MB, free: 13.42 MB / 394.7 MB Notification: Performance of sort global known variables: time 6e-08/0.08772, allocations: 0 / 422.5 MB, free: 13.42 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008154/0.08854, allocations: 0.6008 MB / 423.1 MB, free: 12.82 MB / 394.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.0007494/0.08929, allocations: 0.8237 MB / 423.9 MB, free: 11.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008688/0.09015, allocations: 0.7799 MB / 424.7 MB, free: 11.18 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.09016, allocations: 4 kB / 424.7 MB, free: 11.18 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003943/0.09055, allocations: 427 kB / 425.1 MB, free: 10.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001336/0.09189, allocations: 0.6397 MB / 425.7 MB, free: 10.09 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003902/0.09579, allocations: 4.567 MB / 430.3 MB, free: 5.469 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006546/0.09644, allocations: 1.169 MB / 431.5 MB, free: 4.262 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001579/0.0966, allocations: 152.5 kB / 431.6 MB, free: 4.113 MB / 394.7 MB Notification: Performance of SimCode: time 9.62e-07/0.0966, allocations: 0 / 431.6 MB, free: 4.113 MB / 394.7 MB Notification: Performance of Templates: time 0.1488/0.2454, allocations: 40.36 MB / 472 MB, free: 103.1 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 8.182244068011642]