Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 98.77 kB / 16.5 MB, free: 6.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009881/0.0009881, allocations: 51.52 kB / 300.1 MB, free: 6.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07939/0.08039, allocations: 49.44 MB / 349.5 MB, free: 4.781 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1858/0.2662, allocations: 26.41 MB / 375.9 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03298/0.2992, allocations: 22.56 MB / 398.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005087/0.3044, allocations: 60.25 kB / 398.5 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005837/0.3102, allocations: 1.52 MB / 400 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01322/0.3235, allocations: 2.708 MB / 402.8 MB, free: 11.42 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006929/0.3305, allocations: 1.361 MB / 404.1 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02346/0.3539, allocations: 12.41 MB / 416.5 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002106/0.3561, allocations: 0.8181 MB / 417.3 MB, free: 1.234 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003752/0.3599, allocations: 1.998 MB / 419.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003157/0.363, allocations: 2.068 MB / 421.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006422/0.3637, allocations: 92 kB / 421.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005793/0.3695, allocations: 1.498 MB / 423 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008958/0.3704, allocations: 0.5581 MB / 423.6 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004387/0.3748, allocations: 2.585 MB / 426.1 MB, free: 8.387 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009422/0.3842, allocations: 6.454 MB / 432.6 MB, free: 1.906 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3843, allocations: 0 / 432.6 MB, free: 1.906 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3843, allocations: 0 / 432.6 MB, free: 1.906 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002462/0.3846, allocations: 0 / 432.6 MB, free: 1.906 MB / 334.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.01222/0.3968, allocations: 6.698 MB / 439.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.3969, allocations: 12.03 kB / 439.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004354/0.3973, allocations: 165.1 kB / 439.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001349/0.3987, allocations: 0.7457 MB / 440.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007457/0.4061, allocations: 4.629 MB / 444.8 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.982e-05/0.4062, allocations: 66 kB / 444.9 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002246/0.4064, allocations: 107.8 kB / 445 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002231/0.4087, allocations: 1.293 MB / 446.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.4087, allocations: 0 / 446.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001163/0.4088, allocations: 39.98 kB / 446.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.431e-05/0.4089, allocations: 35.98 kB / 446.4 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00239/0.4113, allocations: 1.48 MB / 447.9 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009644/0.4209, allocations: 5.634 MB / 453.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001665/0.4226, allocations: 0.9851 MB / 454.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001683/0.4243, allocations: 1.227 MB / 455.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05474/0.4791, allocations: 59.82 MB / 0.5034 GB, free: 6.469 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001011/0.4801, allocations: 0.5521 MB / 0.504 GB, free: 5.902 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 2.665e-06/0.4801, allocations: 0 / 0.504 GB, free: 5.902 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003399/0.4835, allocations: 1.875 MB / 0.5058 GB, free: 4.016 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.4836, allocations: 59.97 kB / 0.5059 GB, free: 3.945 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006602/0.4902, allocations: 5.598 MB / 0.5113 GB, free: 14.37 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001125/0.4903, allocations: 41.7 kB / 0.5114 GB, free: 14.32 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002386/0.4927, allocations: 2.947 MB / 0.5143 GB, free: 11.37 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002851/0.493, allocations: 295.9 kB / 0.5145 GB, free: 11.07 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005007/0.4935, allocations: 418.5 kB / 0.5149 GB, free: 10.66 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.799e-05/0.4936, allocations: 301.1 kB / 0.5152 GB, free: 10.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008436/0.4945, allocations: 407.8 kB / 0.5156 GB, free: 9.965 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001234/0.4957, allocations: 1.087 MB / 0.5167 GB, free: 8.547 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002169/0.4979, allocations: 1.611 MB / 0.5182 GB, free: 6.602 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.12e-05/0.4979, allocations: 8 kB / 0.5183 GB, free: 6.594 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003467/0.5014, allocations: 2.207 MB / 0.5204 GB, free: 4.375 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.5014, allocations: 12 kB / 0.5204 GB, free: 4.363 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001931/0.5016, allocations: 163.9 kB / 0.5206 GB, free: 4.203 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.513e-05/0.5017, allocations: 40.03 kB / 0.5206 GB, free: 4.164 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.5028, allocations: 359.3 kB / 0.521 GB, free: 3.812 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.756e-05/0.5029, allocations: 47.84 kB / 0.521 GB, free: 3.766 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001785/0.5047, allocations: 186.2 kB / 0.5212 GB, free: 3.582 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001969/0.5049, allocations: 124 kB / 0.5213 GB, free: 3.461 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.001371/0.5063, allocations: 0.7121 MB / 0.522 GB, free: 2.738 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008621/0.5071, allocations: 0.714 MB / 0.5227 GB, free: 2.016 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1543/0.6615, allocations: 2.155 MB / 0.5248 GB, free: 155 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.74e-05/0.6615, allocations: 8.516 kB / 0.5248 GB, free: 155 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.6615, allocations: 0 / 0.5248 GB, free: 155 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.446e-05/0.6615, allocations: 4.438 kB / 0.5248 GB, free: 155 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005891/0.6674, allocations: 3.596 MB / 0.5283 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001686/0.6676, allocations: 140.1 kB / 0.5285 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007498/0.6684, allocations: 165 kB / 0.5286 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/0.6684, allocations: 3.406 kB / 0.5286 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-05/0.6685, allocations: 57.7 kB / 0.5287 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.351e-06/0.6685, allocations: 4.922 kB / 0.5287 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.6685, allocations: 0 / 0.5287 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003776/0.6723, allocations: 2.157 MB / 0.5308 GB, free: 153.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001292/0.6736, allocations: 0.8197 MB / 0.5316 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000556/0.6742, allocations: 17.47 kB / 0.5316 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.6753, allocations: 36.45 kB / 0.5316 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002806/0.6756, allocations: 99.12 kB / 0.5317 GB, free: 153.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001481/0.6757, allocations: 70.03 kB / 0.5318 GB, free: 153.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005679/0.6814, allocations: 3.606 MB / 0.5353 GB, free: 151.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.6814, allocations: 0 / 0.5353 GB, free: 151.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002601/0.684, allocations: 1.075 MB / 0.5364 GB, free: 151.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.005161/0.6892, allocations: 3.806 MB / 0.5401 GB, free: 150.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002436/0.6917, allocations: 1.43 MB / 0.5415 GB, free: 149.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.6917, allocations: 0 / 0.5415 GB, free: 149.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.6928, allocations: 0.7774 MB / 0.5422 GB, free: 149.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004762/0.6975, allocations: 1.125 MB / 0.5433 GB, free: 148.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07556/0.7731, allocations: 49.16 MB / 0.5913 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001259/0.7744, allocations: 2.588 MB / 0.5939 GB, free: 99.25 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002314/0.7767, allocations: 0.6885 MB / 0.5945 GB, free: 98.56 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001608/0.7783, allocations: 2.393 MB / 0.5969 GB, free: 96.17 MB / 446.1 MB Notification: Performance of SimCode: time 2.294e-06/0.7784, allocations: 0 / 0.5969 GB, free: 96.17 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2934/1.072, allocations: 107.5 MB / 0.7018 GB, free: 139.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001365/1.072, allocations: 194.4 kB / 0.702 GB, free: 139 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.414/6.486, allocations: 0 / 0.702 GB, free: 139 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches