Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001401/0.001401, allocations: 114 kB / 17.33 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001551/0.001551, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.4 MB, free: 10.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 62.77 kB / 306.5 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09459/0.0958, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1931/0.2889, allocations: 26.42 MB / 383.5 MB, free: 6.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03131/0.3202, allocations: 22.23 MB / 405.7 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005516/0.3258, allocations: 60.78 kB / 405.8 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005295/0.3312, allocations: 1.511 MB / 407.3 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01383/0.345, allocations: 2.768 MB / 410.1 MB, free: 3.285 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006729/0.3518, allocations: 1.41 MB / 411.5 MB, free: 2.238 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01886/0.3706, allocations: 12.94 MB / 424.4 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001874/0.3726, allocations: 0.8631 MB / 425.3 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003813/0.3764, allocations: 2.08 MB / 427.4 MB, free: 5.355 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003803/0.3802, allocations: 2.096 MB / 429.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009194/0.3811, allocations: 140 kB / 429.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007741/0.3889, allocations: 1.549 MB / 431.1 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001042/0.39, allocations: 0.6127 MB / 431.8 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004189/0.3942, allocations: 2.624 MB / 434.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009233/0.4034, allocations: 6.567 MB / 440.9 MB, free: 7.707 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.4035, allocations: 0 / 440.9 MB, free: 7.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4035, allocations: 0 / 440.9 MB, free: 7.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002049/0.4037, allocations: 0 / 440.9 MB, free: 7.707 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.009953/0.4136, allocations: 6.701 MB / 447.6 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.4137, allocations: 12.03 kB / 447.7 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002562/0.4139, allocations: 157.2 kB / 447.8 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009349/0.4149, allocations: 0.7412 MB / 448.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006495/0.4214, allocations: 4.633 MB / 453.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.328e-05/0.4215, allocations: 69.94 kB / 453.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002031/0.4217, allocations: 103.8 kB / 453.4 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00224/0.4239, allocations: 1.301 MB / 454.7 MB, free: 9.766 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/0.424, allocations: 3.984 kB / 454.7 MB, free: 9.762 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001178/0.4241, allocations: 36 kB / 454.7 MB, free: 9.727 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.822e-05/0.4241, allocations: 35.98 kB / 454.7 MB, free: 9.691 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002398/0.4265, allocations: 1.484 MB / 456.2 MB, free: 8.203 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009014/0.4356, allocations: 5.641 MB / 461.9 MB, free: 2.477 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001564/0.4371, allocations: 0.9851 MB / 462.8 MB, free: 1.473 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001473/0.4386, allocations: 1.219 MB / 464.1 MB, free: 264 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05151/0.4902, allocations: 61.07 MB / 0.5128 GB, free: 10.72 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009515/0.4911, allocations: 0.5599 MB / 0.5134 GB, free: 10.14 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.916e-06/0.4912, allocations: 0 / 0.5134 GB, free: 10.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003108/0.4943, allocations: 1.875 MB / 0.5152 GB, free: 8.258 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.4943, allocations: 67.97 kB / 0.5153 GB, free: 8.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005877/0.5002, allocations: 5.582 MB / 0.5207 GB, free: 2.625 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.628e-05/0.5003, allocations: 37.7 kB / 0.5207 GB, free: 2.582 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1583/0.6586, allocations: 2.948 MB / 0.5236 GB, free: 150.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004692/0.6591, allocations: 296.8 kB / 0.5239 GB, free: 150 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006656/0.6598, allocations: 421.4 kB / 0.5243 GB, free: 150 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.101e-05/0.6599, allocations: 302.9 kB / 0.5246 GB, free: 149.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009692/0.6608, allocations: 401.3 kB / 0.525 GB, free: 149.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/0.6621, allocations: 1.088 MB / 0.526 GB, free: 148.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002083/0.6641, allocations: 1.62 MB / 0.5276 GB, free: 147.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.63e-05/0.6642, allocations: 7.469 kB / 0.5276 GB, free: 147.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003792/0.668, allocations: 2.204 MB / 0.5298 GB, free: 147.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.843e-05/0.668, allocations: 14.69 kB / 0.5298 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002471/0.6683, allocations: 164.3 kB / 0.53 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.589e-05/0.6683, allocations: 33.89 kB / 0.53 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.6695, allocations: 358.7 kB / 0.5303 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.845e-05/0.6696, allocations: 50.55 kB / 0.5304 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001773/0.6714, allocations: 182.2 kB / 0.5306 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001846/0.6716, allocations: 128.4 kB / 0.5307 GB, free: 147.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001176/0.6727, allocations: 0.7142 MB / 0.5314 GB, free: 147.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006325/0.6734, allocations: 0.7154 MB / 0.5321 GB, free: 146.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004703/0.6781, allocations: 2.16 MB / 0.5342 GB, free: 146.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.6781, allocations: 12.5 kB / 0.5342 GB, free: 146.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.6781, allocations: 1.375 kB / 0.5342 GB, free: 146.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.6781, allocations: 3.469 kB / 0.5342 GB, free: 146.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005199/0.6833, allocations: 3.603 MB / 0.5377 GB, free: 144.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001803/0.6835, allocations: 138.2 kB / 0.5378 GB, free: 144.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007676/0.6843, allocations: 157.5 kB / 0.538 GB, free: 144.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.6843, allocations: 3.312 kB / 0.538 GB, free: 144.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.812e-05/0.6844, allocations: 61.83 kB / 0.5381 GB, free: 144.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/0.6844, allocations: 3.375 kB / 0.5381 GB, free: 144.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.6845, allocations: 1.531 kB / 0.5381 GB, free: 144.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003131/0.6876, allocations: 2.148 MB / 0.5402 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001299/0.6889, allocations: 0.8223 MB / 0.541 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005706/0.6895, allocations: 18.11 kB / 0.541 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/0.6906, allocations: 33.83 kB / 0.541 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002309/0.6908, allocations: 96.06 kB / 0.5411 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000124/0.691, allocations: 70.36 kB / 0.5412 GB, free: 143.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004932/0.6959, allocations: 3.609 MB / 0.5447 GB, free: 142 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6959, allocations: 4 kB / 0.5447 GB, free: 142 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002279/0.6982, allocations: 1.076 MB / 0.5458 GB, free: 141.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.004411/0.7026, allocations: 3.818 MB / 0.5495 GB, free: 140.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00242/0.705, allocations: 1.459 MB / 0.5509 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.7051, allocations: 0 / 0.5509 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009039/0.706, allocations: 0.765 MB / 0.5517 GB, free: 139.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00424/0.7102, allocations: 1.207 MB / 0.5528 GB, free: 138.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07458/0.7848, allocations: 49.17 MB / 0.6008 GB, free: 85.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001158/0.786, allocations: 2.588 MB / 0.6034 GB, free: 82.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002281/0.7883, allocations: 0.6885 MB / 0.604 GB, free: 82.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001495/0.7898, allocations: 2.389 MB / 0.6064 GB, free: 79.65 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.7898, allocations: 4 kB / 0.6064 GB, free: 79.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.45/2.24, allocations: 109.3 MB / 0.7131 GB, free: 123.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000153/2.24, allocations: 201.8 kB / 0.7133 GB, free: 123.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.829/8.069, allocations: 10.67 kB / 0.7133 GB, free: 123.2 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches