Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_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.0007367/0.0007366, allocations: 94.62 kB / 17.3 MB, free: 6.074 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.0009644/0.0009644, allocations: 180.2 kB / 18.21 MB, free: 5.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.223/1.223, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006881/0.0006883, allocations: 11.94 kB / 281.5 MB, free: 3.324 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1151, allocations: 47.58 MB / 329.1 MB, free: 3.672 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02268/0.1378, allocations: 24.3 MB / 353.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02466/0.1625, allocations: 21.21 MB / 374.6 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002978/0.1655, allocations: 59.62 kB / 374.6 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003785/0.1693, allocations: 1.493 MB / 376.1 MB, free: 4.41 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008926/0.1783, allocations: 2.667 MB / 378.8 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004419/0.1827, allocations: 1.305 MB / 380.1 MB, free: 424 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1572/0.3399, allocations: 12.13 MB / 392.2 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001523/0.3415, allocations: 0.8215 MB / 393 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003087/0.3446, allocations: 1.772 MB / 394.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002744/0.3473, allocations: 1.979 MB / 396.8 MB, free: 11.1 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00049/0.3478, allocations: 79.19 kB / 396.9 MB, free: 11.1 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003885/0.3517, allocations: 1.164 MB / 398 MB, free: 11.08 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006638/0.3524, allocations: 0.542 MB / 398.6 MB, free: 10.81 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002888/0.3553, allocations: 2.605 MB / 401.2 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005447/0.3608, allocations: 6.389 MB / 407.6 MB, free: 8.094 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3608, allocations: 0 / 407.6 MB, free: 8.094 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3608, allocations: 0 / 407.6 MB, free: 8.094 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001229/0.3609, allocations: 0 / 407.6 MB, free: 8.094 MB / 318.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.006889/0.3678, allocations: 5.823 MB / 413.4 MB, free: 2.809 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.3679, allocations: 12.03 kB / 413.4 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002648/0.3681, allocations: 158.2 kB / 413.6 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006127/0.3688, allocations: 0.752 MB / 414.3 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006049/0.3748, allocations: 4.663 MB / 419 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.235e-05/0.3749, allocations: 72.38 kB / 419.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00027/0.3752, allocations: 108.2 kB / 419.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002155/0.3773, allocations: 1.325 MB / 420.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.3774, allocations: 3.281 kB / 420.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001162/0.3775, allocations: 36 kB / 420.5 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.455e-05/0.3775, allocations: 37.48 kB / 420.6 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002418/0.38, allocations: 1.523 MB / 422.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01009/0.3901, allocations: 5.679 MB / 427.8 MB, free: 5.598 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001807/0.3919, allocations: 1.039 MB / 428.8 MB, free: 4.547 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001688/0.3936, allocations: 1.241 MB / 430 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05669/0.4503, allocations: 59.99 MB / 490 MB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001047/0.4514, allocations: 0.5833 MB / 490.6 MB, free: 14.63 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 2.906e-06/0.4514, allocations: 0 / 490.6 MB, free: 14.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.003642/0.4551, allocations: 1.941 MB / 492.5 MB, free: 12.68 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.4551, allocations: 67.89 kB / 492.6 MB, free: 12.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006713/0.4618, allocations: 5.624 MB / 498.2 MB, free: 7.008 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001218/0.462, allocations: 37.7 kB / 498.3 MB, free: 6.965 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00242/0.4644, allocations: 2.933 MB / 0.4895 GB, free: 4.027 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002936/0.4647, allocations: 306.8 kB / 0.4898 GB, free: 3.73 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000165/0.4649, allocations: 121.6 kB / 0.4899 GB, free: 3.605 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.465, allocations: 301.1 kB / 0.4902 GB, free: 3.309 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008694/0.4659, allocations: 427.8 kB / 0.4906 GB, free: 2.895 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.4672, allocations: 1.113 MB / 0.4917 GB, free: 1.457 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002269/0.4694, allocations: 1.65 MB / 0.4933 GB, free: 15.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/0.4695, allocations: 8 kB / 0.4933 GB, free: 15.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003564/0.473, allocations: 2.264 MB / 0.4955 GB, free: 13.21 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.4731, allocations: 16 kB / 0.4955 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001877/0.4733, allocations: 160 kB / 0.4957 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.69e-05/0.4733, allocations: 32 kB / 0.4957 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/0.4745, allocations: 367.6 kB / 0.496 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-05/0.4745, allocations: 51.78 kB / 0.4961 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001766/0.4763, allocations: 194.2 kB / 0.4963 GB, free: 12.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/0.4765, allocations: 128 kB / 0.4964 GB, free: 12.28 MB / 430.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.001343/0.4778, allocations: 0.7199 MB / 0.4971 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006138/0.4784, allocations: 0.7178 MB / 0.4978 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004859/0.4833, allocations: 2.213 MB / 0.5 GB, free: 8.613 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.4833, allocations: 8 kB / 0.5 GB, free: 8.605 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.4833, allocations: 0 / 0.5 GB, free: 8.605 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.4834, allocations: 3.984 kB / 0.5 GB, free: 8.602 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005116/0.4885, allocations: 3.662 MB / 0.5035 GB, free: 4.891 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001638/0.4887, allocations: 136 kB / 0.5037 GB, free: 4.758 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007543/0.4894, allocations: 163.9 kB / 0.5038 GB, free: 4.598 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-06/0.4894, allocations: 4 kB / 0.5038 GB, free: 4.594 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.95e-05/0.4895, allocations: 63.98 kB / 0.5039 GB, free: 4.531 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.561e-06/0.4895, allocations: 7.875 kB / 0.5039 GB, free: 4.523 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.696e-06/0.4895, allocations: 4 kB / 0.5039 GB, free: 4.52 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003238/0.4928, allocations: 2.224 MB / 0.5061 GB, free: 2.262 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001217/0.494, allocations: 0.8123 MB / 0.5069 GB, free: 1.422 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005004/0.4945, allocations: 20 kB / 0.5069 GB, free: 1.402 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/0.4956, allocations: 43.97 kB / 0.5069 GB, free: 1.359 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/0.4958, allocations: 92.48 kB / 0.507 GB, free: 1.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/0.4959, allocations: 75.98 kB / 0.5071 GB, free: 1.195 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004595/0.5005, allocations: 3.637 MB / 0.5106 GB, free: 13.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5006, allocations: 0 / 0.5106 GB, free: 13.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002369/0.5029, allocations: 1.085 MB / 0.5117 GB, free: 12.5 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.005094/0.508, allocations: 3.875 MB / 0.5155 GB, free: 8.816 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002371/0.5104, allocations: 1.475 MB / 0.5169 GB, free: 7.289 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.5104, allocations: 0 / 0.5169 GB, free: 7.289 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001086/0.5115, allocations: 0.7942 MB / 0.5177 GB, free: 6.445 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003715/0.5153, allocations: 0.9255 MB / 0.5186 GB, free: 5.516 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2296/0.7449, allocations: 49.84 MB / 0.5673 GB, free: 161 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001683/0.7466, allocations: 2.607 MB / 0.5698 GB, free: 160.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002465/0.7491, allocations: 0.6859 MB / 0.5705 GB, free: 160 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002018/0.7511, allocations: 2.409 MB / 0.5728 GB, free: 157.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/0.7511, allocations: 0 / 0.5728 GB, free: 157.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1364/0.8876, allocations: 107.5 MB / 0.6779 GB, free: 53.38 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001559/0.8878, allocations: 205.3 kB / 0.6781 GB, free: 53.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.96/5.848, allocations: 3.938 kB / 0.6781 GB, free: 53.12 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches