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.002078/0.002078, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.00186/0.00186, allocations: 215.7 kB / 23.75 MB, free: 4.668 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.475/1.475, allocations: 230.6 MB / 257.5 MB, free: 7.977 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.001675/0.001675, allocations: 55.92 kB / 378.3 MB, free: 2.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.2286, allocations: 53.35 MB / 431.6 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01824/0.2468, allocations: 15.38 MB / 447 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02852/0.2754, allocations: 20.86 MB / 467.9 MB, free: 2.531 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002213/0.2776, allocations: 138.5 kB / 468 MB, free: 2.395 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003355/0.2809, allocations: 1.266 MB / 469.3 MB, free: 1.125 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007554/0.2885, allocations: 2.417 MB / 471.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004754/0.2932, allocations: 1.457 MB / 473.1 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01151/0.3047, allocations: 6.735 MB / 479.9 MB, free: 6.473 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000894/0.3056, allocations: 270.2 kB / 480.1 MB, free: 6.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002108/0.3077, allocations: 1.178 MB / 481.3 MB, free: 4.996 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002015/0.3098, allocations: 1.153 MB / 482.5 MB, free: 3.836 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003839/0.3101, allocations: 76 kB / 482.5 MB, free: 3.762 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005192/0.3153, allocations: 1.475 MB / 484 MB, free: 2.285 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000528/0.3159, allocations: 337.5 kB / 484.3 MB, free: 1.953 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002318/0.3182, allocations: 1.432 MB / 485.8 MB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006679/0.3249, allocations: 4.005 MB / 489.8 MB, free: 12.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.3249, allocations: 0 / 489.8 MB, free: 12.49 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3249, allocations: 4 kB / 489.8 MB, free: 12.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.614e-05/0.325, allocations: 0 / 489.8 MB, free: 12.48 MB / 398.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.006624/0.3316, allocations: 3.89 MB / 493.7 MB, free: 8.535 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.3316, allocations: 12.03 kB / 493.7 MB, free: 8.523 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006061/0.3322, allocations: 429.3 kB / 494.1 MB, free: 8.102 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004241/0.3365, allocations: 2.349 MB / 496.5 MB, free: 5.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.521e-05/0.3365, allocations: 37 kB / 496.5 MB, free: 5.621 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.3367, allocations: 51.98 kB / 496.5 MB, free: 5.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001529/0.3382, allocations: 0.7304 MB / 497.3 MB, free: 4.836 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.3382, allocations: 0 / 497.3 MB, free: 4.836 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.928e-05/0.3383, allocations: 20 kB / 497.3 MB, free: 4.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.739e-05/0.3383, allocations: 23.98 kB / 497.3 MB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001708/0.34, allocations: 0.8202 MB / 498.1 MB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00596/0.346, allocations: 3.05 MB / 0.4894 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00123/0.3472, allocations: 0.528 MB / 0.49 GB, free: 328 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001058/0.3483, allocations: 0.5654 MB / 0.4905 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0272/0.3755, allocations: 13.78 MB / 0.504 GB, free: 1.582 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008026/0.3763, allocations: 377.6 kB / 0.5043 GB, free: 1.199 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.375e-06/0.3763, allocations: 0 / 0.5043 GB, free: 1.199 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002497/0.3788, allocations: 1.122 MB / 0.5054 GB, free: 72 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.817e-05/0.3789, allocations: 67.48 kB / 0.5055 GB, free: 15.99 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004391/0.3832, allocations: 3.09 MB / 0.5085 GB, free: 12.9 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.427e-05/0.3833, allocations: 29.7 kB / 0.5085 GB, free: 12.86 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001666/0.385, allocations: 1.597 MB / 0.5101 GB, free: 11.26 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.3852, allocations: 174.6 kB / 0.5103 GB, free: 11.09 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003392/0.3855, allocations: 226.4 kB / 0.5105 GB, free: 10.86 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.3857, allocations: 337.9 kB / 0.5108 GB, free: 10.53 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006304/0.3863, allocations: 245.9 kB / 0.511 GB, free: 10.29 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009471/0.3873, allocations: 0.6018 MB / 0.5116 GB, free: 9.508 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001631/0.3889, allocations: 0.9013 MB / 0.5125 GB, free: 8.434 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-05/0.3889, allocations: 7.938 kB / 0.5125 GB, free: 8.426 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002408/0.3913, allocations: 1.254 MB / 0.5137 GB, free: 7.164 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/0.3913, allocations: 12 kB / 0.5137 GB, free: 7.152 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000137/0.3915, allocations: 80 kB / 0.5138 GB, free: 7.074 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.254e-05/0.3915, allocations: 16 kB / 0.5138 GB, free: 7.059 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007519/0.3923, allocations: 208.3 kB / 0.514 GB, free: 6.855 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.703e-05/0.3923, allocations: 23.92 kB / 0.514 GB, free: 6.832 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009743/0.3933, allocations: 111.3 kB / 0.5142 GB, free: 6.723 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.3934, allocations: 64 kB / 0.5142 GB, free: 6.66 MB / 430.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.0007882/0.3942, allocations: 461.4 kB / 0.5147 GB, free: 6.199 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005534/0.3947, allocations: 425.3 kB / 0.5151 GB, free: 5.781 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002804/0.3975, allocations: 1.203 MB / 0.5162 GB, free: 4.57 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.3975, allocations: 4 kB / 0.5162 GB, free: 4.566 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.3975, allocations: 3.938 kB / 0.5162 GB, free: 4.562 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3975, allocations: 3.984 kB / 0.5162 GB, free: 4.559 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003863/0.4014, allocations: 2.13 MB / 0.5183 GB, free: 2.367 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001127/0.4015, allocations: 68 kB / 0.5184 GB, free: 2.301 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004993/0.402, allocations: 91.91 kB / 0.5185 GB, free: 2.211 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.402, allocations: 4 kB / 0.5185 GB, free: 2.207 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-05/0.4021, allocations: 28 kB / 0.5185 GB, free: 2.18 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.4021, allocations: 3.938 kB / 0.5185 GB, free: 2.176 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.4021, allocations: 4 kB / 0.5185 GB, free: 2.172 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002458/0.4046, allocations: 1.347 MB / 0.5198 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009506/0.4055, allocations: 435.1 kB / 0.5202 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003381/0.4058, allocations: 12 kB / 0.5203 GB, free: 372 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007126/0.4066, allocations: 31.95 kB / 0.5203 GB, free: 340 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/0.4067, allocations: 63.94 kB / 0.5204 GB, free: 276 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.32e-05/0.4068, allocations: 39.98 kB / 0.5204 GB, free: 236 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002917/0.4097, allocations: 2.01 MB / 0.5224 GB, free: 14.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4097, allocations: 4 kB / 0.5224 GB, free: 14.22 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001399/0.4111, allocations: 0.593 MB / 0.5229 GB, free: 13.63 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.001257/0.4124, allocations: 0.7846 MB / 0.5237 GB, free: 12.84 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.4141, allocations: 0.7794 MB / 0.5245 GB, free: 12.03 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.4141, allocations: 0 / 0.5245 GB, free: 12.03 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000809/0.4149, allocations: 426.9 kB / 0.5249 GB, free: 11.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002509/0.4174, allocations: 0.636 MB / 0.5255 GB, free: 10.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00703/0.4244, allocations: 4.582 MB / 0.53 GB, free: 6.324 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001456/0.4259, allocations: 1.718 MB / 0.5316 GB, free: 4.574 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009668/0.4268, allocations: 361.3 kB / 0.532 GB, free: 4.215 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002459/0.4271, allocations: 147.4 kB / 0.5321 GB, free: 4.07 MB / 446.1 MB Notification: Performance of SimCode: time 5.92e-07/0.4271, allocations: 7.938 kB / 0.5321 GB, free: 4.062 MB / 446.1 MB Notification: Performance of Templates: time 0.2233/0.6504, allocations: 32.74 MB / 0.5641 GB, free: 84.9 MB / 446.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.890643156832084]