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.001116/0.001116, allocations: 113.3 kB / 17.28 MB, free: 6.301 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.001085/0.001085, allocations: 189.3 kB / 18.19 MB, free: 5.383 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.587/1.587, allocations: 205.1 MB / 224 MB, free: 12.45 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.001465/0.001465, allocations: 56.12 kB / 280.3 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1277, allocations: 46.63 MB / 326.9 MB, free: 4.707 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02636/0.1541, allocations: 25.04 MB / 351.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03019/0.1844, allocations: 21.09 MB / 373 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007033/0.1914, allocations: 59.62 kB / 373.1 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008807/0.2004, allocations: 1.469 MB / 374.5 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02351/0.2239, allocations: 2.721 MB / 377.3 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008405/0.2324, allocations: 1.363 MB / 378.6 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2653/0.4978, allocations: 12.51 MB / 391.1 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002263/0.5001, allocations: 0.867 MB / 392 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005089/0.5052, allocations: 1.861 MB / 393.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002787/0.508, allocations: 2.052 MB / 395.9 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003331/0.5083, allocations: 138 kB / 396 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004745/0.5131, allocations: 1.217 MB / 397.3 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004292/0.5135, allocations: 0.6119 MB / 397.9 MB, free: 11.81 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002719/0.5162, allocations: 2.643 MB / 400.5 MB, free: 10.74 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007517/0.5237, allocations: 6.607 MB / 407.1 MB, free: 9.121 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.5238, allocations: 4 kB / 407.1 MB, free: 9.117 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.5238, allocations: 0 / 407.1 MB, free: 9.117 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001031/0.5239, allocations: 0 / 407.1 MB, free: 9.117 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.009269/0.5332, allocations: 6.74 MB / 413.9 MB, free: 2.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.344e-05/0.5333, allocations: 8.031 kB / 413.9 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002155/0.5335, allocations: 170.4 kB / 414 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009058/0.5344, allocations: 0.752 MB / 414.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006436/0.5408, allocations: 4.66 MB / 419.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.227e-05/0.5409, allocations: 69.98 kB / 419.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002208/0.5412, allocations: 99.91 kB / 419.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002379/0.5435, allocations: 1.305 MB / 420.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.169e-05/0.5436, allocations: 0 / 420.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.5437, allocations: 36 kB / 421 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-05/0.5438, allocations: 41.66 kB / 421 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002494/0.5463, allocations: 1.488 MB / 422.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01133/0.5576, allocations: 5.644 MB / 428.1 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001771/0.5594, allocations: 0.9964 MB / 429.1 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001657/0.5611, allocations: 1.219 MB / 430.4 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06551/0.6266, allocations: 59.95 MB / 490.3 MB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0012/0.6279, allocations: 0.5598 MB / 490.9 MB, free: 13.99 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 4.799e-06/0.6279, allocations: 0 / 490.9 MB, free: 13.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.003928/0.6318, allocations: 1.881 MB / 492.7 MB, free: 12.11 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.452e-05/0.6319, allocations: 67.95 kB / 492.8 MB, free: 12.03 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0122/0.6441, allocations: 5.624 MB / 498.4 MB, free: 6.434 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.6443, allocations: 41.7 kB / 498.5 MB, free: 6.387 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003384/0.6477, allocations: 2.93 MB / 0.4896 GB, free: 3.449 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003657/0.648, allocations: 294.4 kB / 0.4899 GB, free: 3.164 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006943/0.6487, allocations: 426.5 kB / 0.4903 GB, free: 2.742 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.6489, allocations: 305.1 kB / 0.4906 GB, free: 2.441 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008743/0.6497, allocations: 399.8 kB / 0.491 GB, free: 2.051 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001438/0.6512, allocations: 1.094 MB / 0.4921 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002277/0.6535, allocations: 1.612 MB / 0.4936 GB, free: 14.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.183e-05/0.6535, allocations: 8 kB / 0.4937 GB, free: 14.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004951/0.6585, allocations: 2.217 MB / 0.4958 GB, free: 12.47 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.19e-05/0.6585, allocations: 12 kB / 0.4958 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002351/0.6588, allocations: 164 kB / 0.496 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.435e-05/0.6589, allocations: 38.72 kB / 0.496 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/0.6601, allocations: 359.9 kB / 0.4964 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.921e-05/0.6601, allocations: 43.86 kB / 0.4964 GB, free: 11.87 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00299/0.6631, allocations: 190.1 kB / 0.4966 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002744/0.6634, allocations: 124 kB / 0.4967 GB, free: 11.56 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.002039/0.6654, allocations: 0.7199 MB / 0.4974 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001721/0.6672, allocations: 0.7217 MB / 0.4981 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006367/0.6736, allocations: 2.168 MB / 0.5002 GB, free: 7.934 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.656e-05/0.6736, allocations: 8 kB / 0.5002 GB, free: 7.926 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.6736, allocations: 0 / 0.5002 GB, free: 7.926 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.6736, allocations: 7.984 kB / 0.5003 GB, free: 7.918 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006999/0.6806, allocations: 3.613 MB / 0.5038 GB, free: 4.254 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001809/0.6808, allocations: 148 kB / 0.5039 GB, free: 4.109 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007343/0.6816, allocations: 147.8 kB / 0.5041 GB, free: 3.965 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-05/0.6816, allocations: 7.984 kB / 0.5041 GB, free: 3.957 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-05/0.6817, allocations: 56 kB / 0.5041 GB, free: 3.902 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.314e-06/0.6817, allocations: 4 kB / 0.5041 GB, free: 3.898 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.6817, allocations: 0 / 0.5041 GB, free: 3.898 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00394/0.6857, allocations: 2.165 MB / 0.5062 GB, free: 1.703 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001747/0.6874, allocations: 0.824 MB / 0.507 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005228/0.688, allocations: 12 kB / 0.5071 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/0.689, allocations: 39.95 kB / 0.5071 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002445/0.6893, allocations: 100.4 kB / 0.5072 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001505/0.6894, allocations: 71.98 kB / 0.5073 GB, free: 0.6328 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00479/0.6942, allocations: 3.633 MB / 0.5108 GB, free: 13.03 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6942, allocations: 0 / 0.5108 GB, free: 13.03 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002314/0.6965, allocations: 1.085 MB / 0.5119 GB, free: 11.95 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.005343/0.7019, allocations: 3.827 MB / 0.5156 GB, free: 8.305 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00281/0.7047, allocations: 1.463 MB / 0.517 GB, free: 6.789 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.7047, allocations: 3.938 kB / 0.517 GB, free: 6.785 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001112/0.7059, allocations: 0.7786 MB / 0.5178 GB, free: 5.965 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003163/0.709, allocations: 0.9864 MB / 0.5188 GB, free: 4.977 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2935/1.003, allocations: 49.62 MB / 0.5672 GB, free: 161.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002974/1.006, allocations: 2.604 MB / 0.5698 GB, free: 160.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002635/1.008, allocations: 0.6852 MB / 0.5704 GB, free: 160.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001959/1.01, allocations: 2.419 MB / 0.5728 GB, free: 158.1 MB / 462.1 MB Notification: Performance of SimCode: time 1.402e-06/1.01, allocations: 0 / 0.5728 GB, free: 158.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7013/1.712, allocations: 109.8 MB / 0.68 GB, free: 51.43 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/1.712, allocations: 218.1 kB / 0.6802 GB, free: 51.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.292/9.004, allocations: 0 / 0.6802 GB, free: 51.16 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