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.001416/0.001416, allocations: 104.6 kB / 16.92 MB, free: 5.781 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.001659/0.001659, allocations: 191.5 kB / 17.85 MB, free: 5.195 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.39/1.39, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009499/0.00095, allocations: 47.08 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09499/0.09596, allocations: 49.44 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2258/0.3218, allocations: 26.7 MB / 376.9 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02908/0.3509, allocations: 22.34 MB / 399.2 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006452/0.3574, allocations: 59.5 kB / 399.3 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006023/0.3635, allocations: 1.776 MB / 401 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01386/0.3774, allocations: 3.215 MB / 404.2 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008527/0.386, allocations: 1.62 MB / 405.9 MB, free: 8.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02493/0.4109, allocations: 12.63 MB / 418.5 MB, free: 276 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001945/0.4129, allocations: 0.8591 MB / 419.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003676/0.4166, allocations: 2.022 MB / 421.4 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003605/0.4203, allocations: 2.096 MB / 423.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000494/0.4208, allocations: 140 kB / 423.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006537/0.4273, allocations: 1.541 MB / 425.2 MB, free: 9.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001027/0.4284, allocations: 0.6088 MB / 425.8 MB, free: 8.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005811/0.4342, allocations: 2.624 MB / 428.4 MB, free: 6.285 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01272/0.4469, allocations: 6.575 MB / 435 MB, free: 15.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.447, allocations: 4 kB / 435 MB, free: 15.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.447, allocations: 0 / 435 MB, free: 15.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002283/0.4472, allocations: 0 / 435 MB, free: 15.68 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.01056/0.4578, allocations: 6.7 MB / 441.7 MB, free: 8.887 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.4579, allocations: 8.031 kB / 441.7 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000201/0.4581, allocations: 161.2 kB / 441.8 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001051/0.4591, allocations: 0.7409 MB / 442.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007667/0.4668, allocations: 4.629 MB / 447.2 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.885e-05/0.4669, allocations: 66.88 kB / 447.3 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002562/0.4672, allocations: 107.8 kB / 447.4 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002304/0.4695, allocations: 1.305 MB / 448.7 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.4695, allocations: 0 / 448.7 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001232/0.4696, allocations: 36 kB / 448.7 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-05/0.4697, allocations: 39.97 kB / 448.8 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002423/0.4721, allocations: 1.48 MB / 450.2 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01062/0.4828, allocations: 5.627 MB / 455.9 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001748/0.4845, allocations: 0.9866 MB / 456.8 MB, free: 9.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001597/0.4862, allocations: 1.233 MB / 458.1 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.059/0.5452, allocations: 59.81 MB / 0.5057 GB, free: 4.254 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001028/0.5462, allocations: 0.5559 MB / 0.5063 GB, free: 3.684 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 3.777e-06/0.5463, allocations: 0 / 0.5063 GB, free: 3.684 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003771/0.55, allocations: 1.871 MB / 0.5081 GB, free: 1.805 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.936e-05/0.5501, allocations: 63.97 kB / 0.5082 GB, free: 1.727 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009384/0.5595, allocations: 5.594 MB / 0.5136 GB, free: 12.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002589/0.5598, allocations: 37.7 kB / 0.5137 GB, free: 12.12 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002643/0.5625, allocations: 2.943 MB / 0.5166 GB, free: 9.16 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004594/0.563, allocations: 299.8 kB / 0.5168 GB, free: 8.863 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006026/0.5636, allocations: 426.5 kB / 0.5172 GB, free: 8.441 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.5637, allocations: 301.1 kB / 0.5175 GB, free: 8.145 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008915/0.5646, allocations: 403.8 kB / 0.5179 GB, free: 7.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001214/0.5658, allocations: 1.079 MB / 0.519 GB, free: 6.344 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002165/0.568, allocations: 1.615 MB / 0.5205 GB, free: 4.395 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-05/0.568, allocations: 8 kB / 0.5206 GB, free: 4.387 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003978/0.572, allocations: 2.203 MB / 0.5227 GB, free: 2.172 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/0.5721, allocations: 16 kB / 0.5227 GB, free: 2.156 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002262/0.5723, allocations: 168 kB / 0.5229 GB, free: 1.992 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.027e-05/0.5723, allocations: 36 kB / 0.5229 GB, free: 1.957 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001149/0.5735, allocations: 360.5 kB / 0.5233 GB, free: 1.605 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.342e-05/0.5735, allocations: 47.8 kB / 0.5233 GB, free: 1.559 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001994/0.5755, allocations: 186.2 kB / 0.5235 GB, free: 1.375 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001841/0.5757, allocations: 128 kB / 0.5236 GB, free: 1.25 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.001419/0.5772, allocations: 0.7043 MB / 0.5243 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1707/0.7479, allocations: 0.7127 MB / 0.525 GB, free: 155.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006131/0.754, allocations: 2.156 MB / 0.5271 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.012e-05/0.7541, allocations: 14.09 kB / 0.5271 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.7541, allocations: 0 / 0.5271 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.7541, allocations: 4.375 kB / 0.5271 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00727/0.7614, allocations: 3.601 MB / 0.5306 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001873/0.7616, allocations: 139.5 kB / 0.5308 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007693/0.7624, allocations: 159.4 kB / 0.5309 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.116e-05/0.7624, allocations: 5.094 kB / 0.5309 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001373/0.7625, allocations: 61.42 kB / 0.531 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.848e-06/0.7626, allocations: 3.406 kB / 0.531 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.7626, allocations: 3.531 kB / 0.531 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003645/0.7662, allocations: 2.152 MB / 0.5331 GB, free: 153.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001377/0.7676, allocations: 0.8182 MB / 0.5339 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006005/0.7682, allocations: 17.56 kB / 0.5339 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001123/0.7694, allocations: 33.2 kB / 0.5339 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002424/0.7696, allocations: 109.7 kB / 0.534 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/0.7697, allocations: 66.75 kB / 0.5341 GB, free: 152.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00648/0.7762, allocations: 3.608 MB / 0.5376 GB, free: 151.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7763, allocations: 0 / 0.5376 GB, free: 151.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003438/0.7797, allocations: 1.075 MB / 0.5387 GB, free: 151.4 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.00592/0.7856, allocations: 3.793 MB / 0.5424 GB, free: 149.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002563/0.7882, allocations: 1.459 MB / 0.5438 GB, free: 149.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.7882, allocations: 0 / 0.5438 GB, free: 149.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009801/0.7892, allocations: 0.7789 MB / 0.5446 GB, free: 148.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005098/0.7943, allocations: 1.201 MB / 0.5457 GB, free: 148.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04475/0.8391, allocations: 47.81 MB / 0.5924 GB, free: 100.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001273/0.8404, allocations: 2.595 MB / 0.595 GB, free: 98.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002391/0.8428, allocations: 0.6884 MB / 0.5956 GB, free: 97.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001667/0.8445, allocations: 2.393 MB / 0.598 GB, free: 95.08 MB / 446.1 MB Notification: Performance of SimCode: time 6.31e-07/0.8445, allocations: 0 / 0.598 GB, free: 95.08 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3124/1.157, allocations: 109.8 MB / 0.7052 GB, free: 141.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/12.27, allocations: 5.969 kB / 0.7052 GB, free: 141.7 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