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.00162/0.00162, allocations: 103.9 kB / 17.63 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002245/0.002245, allocations: 202.4 kB / 18.57 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 62.69 kB / 307.1 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1063, allocations: 50.52 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.217/0.3233, allocations: 26.72 MB / 384.3 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02737/0.3507, allocations: 22.37 MB / 406.7 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005837/0.3566, allocations: 59.91 kB / 406.7 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005807/0.3625, allocations: 1.776 MB / 408.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01489/0.3774, allocations: 3.208 MB / 411.7 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006612/0.384, allocations: 1.634 MB / 413.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01886/0.4029, allocations: 12.78 MB / 426.1 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001442/0.4044, allocations: 0.8552 MB / 427 MB, free: 5.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002997/0.4074, allocations: 2.026 MB / 429 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002769/0.4102, allocations: 2.103 MB / 431.1 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004214/0.4106, allocations: 140 kB / 431.2 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004794/0.4154, allocations: 1.541 MB / 432.8 MB, free: 60 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006902/0.4161, allocations: 0.6088 MB / 433.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003053/0.4192, allocations: 2.628 MB / 436 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008544/0.4277, allocations: 6.571 MB / 442.6 MB, free: 6.203 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.4278, allocations: 0 / 442.6 MB, free: 6.203 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4278, allocations: 4 kB / 442.6 MB, free: 6.199 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001583/0.4279, allocations: 0 / 442.6 MB, free: 6.199 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.008428/0.4364, allocations: 6.701 MB / 449.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.4364, allocations: 8.031 kB / 449.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001716/0.4366, allocations: 161.2 kB / 449.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006619/0.4373, allocations: 0.7371 MB / 450.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005591/0.4429, allocations: 4.64 MB / 454.8 MB, free: 9.746 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.032e-05/0.4429, allocations: 66 kB / 454.9 MB, free: 9.684 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001846/0.4431, allocations: 99.84 kB / 455 MB, free: 9.586 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001893/0.445, allocations: 1.301 MB / 456.3 MB, free: 8.266 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.445, allocations: 4 kB / 456.3 MB, free: 8.262 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.4451, allocations: 28 kB / 456.3 MB, free: 8.234 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.49e-05/0.4452, allocations: 43.97 kB / 456.4 MB, free: 8.191 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002203/0.4474, allocations: 1.476 MB / 457.9 MB, free: 6.711 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007673/0.4551, allocations: 5.642 MB / 463.5 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.4566, allocations: 0.9906 MB / 464.5 MB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001443/0.4581, allocations: 1.226 MB / 465.7 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05909/0.5172, allocations: 61.06 MB / 0.5144 GB, free: 9.219 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001066/0.5183, allocations: 0.5566 MB / 0.515 GB, free: 8.648 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.416e-06/0.5183, allocations: 0 / 0.515 GB, free: 8.648 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003798/0.5221, allocations: 1.875 MB / 0.5168 GB, free: 6.762 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.908e-05/0.5222, allocations: 63.97 kB / 0.5169 GB, free: 6.688 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01164/0.5338, allocations: 5.59 MB / 0.5223 GB, free: 1.125 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002272/0.5341, allocations: 41.7 kB / 0.5224 GB, free: 1.078 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1981/0.7322, allocations: 2.934 MB / 0.5252 GB, free: 152 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006174/0.7328, allocations: 298 kB / 0.5255 GB, free: 152 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007924/0.7337, allocations: 422.7 kB / 0.5259 GB, free: 151.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.524e-05/0.7337, allocations: 304.9 kB / 0.5262 GB, free: 151.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/0.7347, allocations: 403.9 kB / 0.5266 GB, free: 151.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/0.736, allocations: 1.089 MB / 0.5277 GB, free: 150.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002456/0.7384, allocations: 1.614 MB / 0.5292 GB, free: 149.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.668e-05/0.7385, allocations: 8.125 kB / 0.5292 GB, free: 149.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004222/0.7427, allocations: 2.205 MB / 0.5314 GB, free: 148.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.204e-05/0.7427, allocations: 20.25 kB / 0.5314 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000226/0.743, allocations: 165.2 kB / 0.5316 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.826e-05/0.743, allocations: 33.28 kB / 0.5316 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/0.7443, allocations: 360.5 kB / 0.5319 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.475e-05/0.7443, allocations: 45.98 kB / 0.532 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002191/0.7465, allocations: 190.1 kB / 0.5322 GB, free: 148.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001891/0.7467, allocations: 123.3 kB / 0.5323 GB, free: 148.1 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.001362/0.7481, allocations: 0.7107 MB / 0.533 GB, free: 147.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008323/0.7489, allocations: 0.7159 MB / 0.5337 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005128/0.7541, allocations: 2.156 MB / 0.5358 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.7541, allocations: 7.797 kB / 0.5358 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.7541, allocations: 5.625 kB / 0.5358 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.7541, allocations: 3.516 kB / 0.5358 GB, free: 146.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006163/0.7603, allocations: 3.598 MB / 0.5393 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001887/0.7605, allocations: 144.2 kB / 0.5395 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007868/0.7613, allocations: 154.9 kB / 0.5396 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.266e-06/0.7613, allocations: 7.219 kB / 0.5396 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.32e-05/0.7614, allocations: 61.19 kB / 0.5397 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.131e-06/0.7614, allocations: 4.812 kB / 0.5397 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.7615, allocations: 5.125 kB / 0.5397 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003474/0.7649, allocations: 2.147 MB / 0.5418 GB, free: 144 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001514/0.7665, allocations: 0.8223 MB / 0.5426 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005651/0.767, allocations: 14.77 kB / 0.5426 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.7681, allocations: 32.92 kB / 0.5426 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002679/0.7684, allocations: 101.6 kB / 0.5427 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/0.7685, allocations: 70.23 kB / 0.5428 GB, free: 143.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006641/0.7752, allocations: 3.607 MB / 0.5463 GB, free: 142.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.7752, allocations: 0 / 0.5463 GB, free: 142.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003214/0.7784, allocations: 1.079 MB / 0.5474 GB, free: 142.1 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.005446/0.7839, allocations: 3.805 MB / 0.5511 GB, free: 140.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002909/0.7868, allocations: 1.467 MB / 0.5525 GB, free: 139.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.7869, allocations: 0 / 0.5525 GB, free: 139.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.788, allocations: 0.7709 MB / 0.5533 GB, free: 139.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005393/0.7934, allocations: 1.195 MB / 0.5544 GB, free: 138.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04096/0.8344, allocations: 47.81 MB / 0.6011 GB, free: 86.71 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001234/0.8357, allocations: 2.588 MB / 0.6036 GB, free: 84.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002556/0.8383, allocations: 0.6963 MB / 0.6043 GB, free: 83.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001702/0.84, allocations: 2.389 MB / 0.6067 GB, free: 81.01 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.84, allocations: 3.938 kB / 0.6067 GB, free: 81.01 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3937/1.234, allocations: 109.8 MB / 0.7139 GB, free: 124.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.84, allocations: 12.28 kB / 0.7139 GB, free: 124.4 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