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.001623/0.001623, allocations: 120.4 kB / 17.79 MB, free: 5.285 MB / 14.72 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.001659/0.001659, allocations: 199.3 kB / 20.74 MB, free: 2.344 MB / 14.72 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 1.547/1.547, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002433/0.002433, allocations: 43.92 kB / 373.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1303, allocations: 53.33 MB / 426.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.2061/0.3363, allocations: 15.36 MB / 442.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03094/0.3672, allocations: 20.84 MB / 463 MB, free: 3.188 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00379/0.371, allocations: 137.1 kB / 463.1 MB, free: 3.094 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003959/0.375, allocations: 1.261 MB / 464.4 MB, free: 2.434 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009333/0.3843, allocations: 2.378 MB / 466.8 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005233/0.3896, allocations: 1.435 MB / 468.2 MB, free: 224 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01195/0.4015, allocations: 6.718 MB / 474.9 MB, free: 12.99 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008079/0.4023, allocations: 273.7 kB / 475.2 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002573/0.4049, allocations: 1.182 MB / 476.4 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001874/0.4068, allocations: 1.142 MB / 477.5 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001783/0.4069, allocations: 74.31 kB / 477.6 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004757/0.4117, allocations: 1.479 MB / 479.1 MB, free: 10.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003852/0.4121, allocations: 336.9 kB / 479.4 MB, free: 10.69 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001804/0.4139, allocations: 1.429 MB / 480.8 MB, free: 9.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006581/0.4205, allocations: 4.006 MB / 484.8 MB, free: 6.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.4205, allocations: 0 / 484.8 MB, free: 6.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4205, allocations: 4 kB / 484.8 MB, free: 6.406 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.226e-05/0.4205, allocations: 0 / 484.8 MB, free: 6.406 MB / 382.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.006149/0.4267, allocations: 3.962 MB / 488.8 MB, free: 2.359 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.4267, allocations: 8.031 kB / 488.8 MB, free: 2.352 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004756/0.4272, allocations: 429.3 kB / 489.2 MB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003446/0.4306, allocations: 2.514 MB / 491.7 MB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.723e-05/0.4307, allocations: 37 kB / 491.8 MB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.4308, allocations: 51.95 kB / 491.8 MB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.4323, allocations: 0.7382 MB / 492.6 MB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.4323, allocations: 2.953 kB / 492.6 MB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.653e-05/0.4324, allocations: 20 kB / 492.6 MB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.421e-05/0.4324, allocations: 19.98 kB / 492.6 MB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001769/0.4342, allocations: 0.8163 MB / 493.4 MB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005436/0.4396, allocations: 3.099 MB / 496.5 MB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001329/0.4409, allocations: 0.5243 MB / 497 MB, free: 9.945 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001087/0.442, allocations: 0.5579 MB / 497.6 MB, free: 9.387 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0361/0.4781, allocations: 30.76 MB / 0.516 GB, free: 6.375 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008703/0.479, allocations: 369.6 kB / 0.5163 GB, free: 6.004 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.855e-06/0.479, allocations: 3.938 kB / 0.5163 GB, free: 6 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.00258/0.4816, allocations: 1.126 MB / 0.5174 GB, free: 4.867 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.4816, allocations: 67.41 kB / 0.5175 GB, free: 4.789 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004183/0.4858, allocations: 3.087 MB / 0.5205 GB, free: 1.703 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.578e-05/0.4859, allocations: 33.7 kB / 0.5205 GB, free: 1.664 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001522/0.4874, allocations: 1.582 MB / 0.5221 GB, free: 76 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000183/0.4876, allocations: 174.8 kB / 0.5223 GB, free: 15.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000335/0.4879, allocations: 234.3 kB / 0.5225 GB, free: 15.66 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.4881, allocations: 337.9 kB / 0.5228 GB, free: 15.33 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006601/0.4888, allocations: 245.9 kB / 0.523 GB, free: 15.09 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009579/0.4897, allocations: 0.6059 MB / 0.5236 GB, free: 14.31 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001632/0.4913, allocations: 0.8971 MB / 0.5245 GB, free: 13.24 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.585e-06/0.4914, allocations: 4 kB / 0.5245 GB, free: 13.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002307/0.4937, allocations: 1.263 MB / 0.5257 GB, free: 11.97 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.4937, allocations: 12.81 kB / 0.5257 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001142/0.4938, allocations: 84 kB / 0.5258 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.946e-05/0.4938, allocations: 16 kB / 0.5258 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007676/0.4946, allocations: 204.2 kB / 0.526 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.647e-05/0.4946, allocations: 25.48 kB / 0.5261 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000945/0.4956, allocations: 107.3 kB / 0.5262 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.4957, allocations: 68 kB / 0.5262 GB, free: 11.46 MB / 446.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.000722/0.4964, allocations: 461.1 kB / 0.5267 GB, free: 11.01 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004269/0.4968, allocations: 421.4 kB / 0.5271 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002847/0.4997, allocations: 1.218 MB / 0.5283 GB, free: 9.367 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.4997, allocations: 4 kB / 0.5283 GB, free: 9.363 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.4997, allocations: 0 / 0.5283 GB, free: 9.363 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.4997, allocations: 3.984 kB / 0.5283 GB, free: 9.359 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003551/0.5032, allocations: 2.143 MB / 0.5304 GB, free: 7.152 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.957e-05/0.5033, allocations: 68 kB / 0.5304 GB, free: 7.086 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000522/0.5039, allocations: 95.84 kB / 0.5305 GB, free: 6.992 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.5039, allocations: 8.062 kB / 0.5305 GB, free: 6.984 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.953e-05/0.5039, allocations: 28 kB / 0.5306 GB, free: 6.957 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.5039, allocations: 0 / 0.5306 GB, free: 6.957 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.5039, allocations: 0 / 0.5306 GB, free: 6.957 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002526/0.5065, allocations: 1.347 MB / 0.5319 GB, free: 5.582 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000714/0.5072, allocations: 0.4992 MB / 0.5324 GB, free: 5.062 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002722/0.5075, allocations: 12 kB / 0.5324 GB, free: 5.051 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007174/0.5082, allocations: 32.03 kB / 0.5324 GB, free: 5.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/0.5083, allocations: 67.81 kB / 0.5325 GB, free: 4.953 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.421e-05/0.5084, allocations: 36 kB / 0.5325 GB, free: 4.918 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002686/0.5111, allocations: 2.01 MB / 0.5345 GB, free: 2.914 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5111, allocations: 0 / 0.5345 GB, free: 2.914 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001363/0.5125, allocations: 0.5969 MB / 0.535 GB, free: 2.316 MB / 446.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.001205/0.5137, allocations: 0.7825 MB / 0.5358 GB, free: 1.527 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001705/0.5154, allocations: 0.7671 MB / 0.5366 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.5154, allocations: 0 / 0.5366 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008507/0.5162, allocations: 431.2 kB / 0.537 GB, free: 296 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002601/0.5188, allocations: 0.6379 MB / 0.5376 GB, free: 15.66 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00658/0.5254, allocations: 4.602 MB / 0.5421 GB, free: 11.01 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001351/0.5268, allocations: 1.706 MB / 0.5438 GB, free: 9.277 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009465/0.5277, allocations: 357.3 kB / 0.5441 GB, free: 8.922 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002462/0.528, allocations: 151.4 kB / 0.5442 GB, free: 8.773 MB / 462.1 MB Notification: Performance of SimCode: time 4.9e-07/0.528, allocations: 0 / 0.5442 GB, free: 8.773 MB / 462.1 MB Notification: Performance of Templates: time 0.06176/0.5897, allocations: 32.35 MB / 0.5758 GB, free: 8.762 MB / 494.1 MB " [Timeout remaining time 659] 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: 5.9207185208797455]