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.001331/0.001331, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001606/0.001606, allocations: 216.9 kB / 24.53 MB, free: 4.008 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.424/1.424, allocations: 230.5 MB / 258.2 MB, free: 8.008 MB / 206.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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 55.91 kB / 378.6 MB, free: 3.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.283, allocations: 53.41 MB / 432 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01612/0.2991, allocations: 15.38 MB / 447.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02845/0.3276, allocations: 20.86 MB / 468.2 MB, free: 2.629 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003836/0.3314, allocations: 138.5 kB / 468.3 MB, free: 2.492 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004649/0.3361, allocations: 1.27 MB / 469.6 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0102/0.3463, allocations: 2.417 MB / 472 MB, free: 14.78 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006093/0.3524, allocations: 1.461 MB / 473.5 MB, free: 13.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01245/0.3648, allocations: 6.731 MB / 480.2 MB, free: 6.566 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009257/0.3657, allocations: 278.2 kB / 480.5 MB, free: 6.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0024/0.3681, allocations: 1.17 MB / 481.7 MB, free: 5.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001831/0.37, allocations: 1.153 MB / 482.8 MB, free: 3.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002/0.3702, allocations: 76 kB / 482.9 MB, free: 3.855 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004384/0.3746, allocations: 1.483 MB / 484.4 MB, free: 2.371 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005745/0.3751, allocations: 333.5 kB / 484.7 MB, free: 2.043 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002011/0.3771, allocations: 1.428 MB / 486.1 MB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006597/0.3837, allocations: 4.009 MB / 490.1 MB, free: 12.58 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3838, allocations: 0 / 490.1 MB, free: 12.58 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3838, allocations: 0 / 490.1 MB, free: 12.58 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.384e-05/0.3838, allocations: 0 / 490.1 MB, free: 12.58 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.005945/0.3898, allocations: 3.89 MB / 494 MB, free: 8.629 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.3898, allocations: 8.031 kB / 494 MB, free: 8.621 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.68e-05/0.3898, allocations: 13 kB / 494 MB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001278/0.39, allocations: 102.5 kB / 494.1 MB, free: 8.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005867/0.3906, allocations: 433.3 kB / 494.6 MB, free: 8.074 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003989/0.3945, allocations: 2.345 MB / 496.9 MB, free: 5.633 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.565e-05/0.3946, allocations: 40.94 kB / 496.9 MB, free: 5.594 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.3947, allocations: 55.94 kB / 497 MB, free: 5.539 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.3961, allocations: 0.7382 MB / 497.7 MB, free: 4.797 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.3961, allocations: 0 / 497.7 MB, free: 4.797 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.965e-05/0.3962, allocations: 20 kB / 497.8 MB, free: 4.777 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.319e-05/0.3962, allocations: 19.98 kB / 497.8 MB, free: 4.758 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/0.3978, allocations: 0.8202 MB / 498.6 MB, free: 3.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005843/0.4037, allocations: 3.047 MB / 0.4899 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/0.4049, allocations: 0.5203 MB / 0.4904 GB, free: 296 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009815/0.4059, allocations: 0.5653 MB / 0.491 GB, free: 15.72 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02468/0.4306, allocations: 13.8 MB / 0.5044 GB, free: 1.539 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000776/0.4314, allocations: 369.6 kB / 0.5048 GB, free: 1.164 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.615e-06/0.4314, allocations: 0 / 0.5048 GB, free: 1.164 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002509/0.4339, allocations: 1.13 MB / 0.5059 GB, free: 32 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.89e-05/0.4339, allocations: 63.41 kB / 0.5059 GB, free: 15.96 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003956/0.4379, allocations: 3.083 MB / 0.5089 GB, free: 12.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.806e-05/0.438, allocations: 41.69 kB / 0.509 GB, free: 12.83 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00157/0.4396, allocations: 1.585 MB / 0.5105 GB, free: 11.23 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002243/0.4398, allocations: 186.5 kB / 0.5107 GB, free: 11.05 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003358/0.4401, allocations: 226.4 kB / 0.5109 GB, free: 10.82 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.4403, allocations: 341.9 kB / 0.5113 GB, free: 10.48 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006366/0.4409, allocations: 245.9 kB / 0.5115 GB, free: 10.25 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001028/0.442, allocations: 0.6018 MB / 0.5121 GB, free: 9.469 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001616/0.4436, allocations: 0.8896 MB / 0.5129 GB, free: 8.402 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.606e-06/0.4436, allocations: 8 kB / 0.513 GB, free: 8.395 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002582/0.4462, allocations: 1.259 MB / 0.5142 GB, free: 7.129 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.814e-05/0.4462, allocations: 16.23 kB / 0.5142 GB, free: 7.113 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001197/0.4463, allocations: 80 kB / 0.5143 GB, free: 7.035 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.856e-05/0.4464, allocations: 20 kB / 0.5143 GB, free: 7.016 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007212/0.4471, allocations: 199.6 kB / 0.5145 GB, free: 6.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.293e-05/0.4471, allocations: 27.92 kB / 0.5145 GB, free: 6.793 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.4481, allocations: 107.3 kB / 0.5146 GB, free: 6.688 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/0.4483, allocations: 68 kB / 0.5147 GB, free: 6.621 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.0008478/0.4491, allocations: 453.4 kB / 0.5151 GB, free: 6.168 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00046/0.4496, allocations: 421.3 kB / 0.5155 GB, free: 5.754 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002752/0.4523, allocations: 1.211 MB / 0.5167 GB, free: 4.535 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.039e-05/0.4524, allocations: 7.938 kB / 0.5167 GB, free: 4.527 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.4524, allocations: 0 / 0.5167 GB, free: 4.527 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.4524, allocations: 7.984 kB / 0.5167 GB, free: 4.52 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003659/0.4561, allocations: 2.118 MB / 0.5188 GB, free: 2.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.587e-05/0.4562, allocations: 68 kB / 0.5188 GB, free: 2.273 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005075/0.4567, allocations: 91.86 kB / 0.5189 GB, free: 2.184 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.4567, allocations: 8.062 kB / 0.5189 GB, free: 2.176 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.032e-05/0.4567, allocations: 31.98 kB / 0.519 GB, free: 2.145 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.181e-06/0.4567, allocations: 4 kB / 0.519 GB, free: 2.141 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4567, allocations: 0 / 0.519 GB, free: 2.141 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002424/0.4592, allocations: 1.347 MB / 0.5203 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008831/0.46, allocations: 443 kB / 0.5207 GB, free: 344 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002888/0.4603, allocations: 16.06 kB / 0.5207 GB, free: 328 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006729/0.461, allocations: 23.97 kB / 0.5208 GB, free: 304 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/0.4612, allocations: 71.8 kB / 0.5208 GB, free: 232 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.073e-05/0.4613, allocations: 36 kB / 0.5209 GB, free: 196 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003/0.4643, allocations: 2.007 MB / 0.5228 GB, free: 14.19 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4643, allocations: 0 / 0.5228 GB, free: 14.19 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001496/0.4657, allocations: 0.6008 MB / 0.5234 GB, free: 13.59 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.004025/0.4698, allocations: 2.573 MB / 0.5259 GB, free: 10.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001807/0.4716, allocations: 0.7791 MB / 0.5267 GB, free: 10.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4716, allocations: 0 / 0.5267 GB, free: 10.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008096/0.4724, allocations: 426.9 kB / 0.5271 GB, free: 9.734 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002698/0.4751, allocations: 0.6425 MB / 0.5277 GB, free: 9.09 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2778/0.7529, allocations: 17.05 MB / 0.5444 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009188/0.7538, allocations: 1.716 MB / 0.546 GB, free: 99.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001059/0.7548, allocations: 356.3 kB / 0.5464 GB, free: 99.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009942/0.7558, allocations: 1.262 MB / 0.5476 GB, free: 98.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.573e-06/0.7558, allocations: 0 / 0.5476 GB, free: 98.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1042/0.86, allocations: 63.85 MB / 0.61 GB, free: 38.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.59/20.45, allocations: 7.875 kB / 0.61 GB, free: 38.78 MB / 446.1 MB " [Timeout remaining time 639] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 24.36486077902373]