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.001345/0.001345, allocations: 107.8 kB / 17.06 MB, free: 5.828 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.001409/0.001409, allocations: 195.9 kB / 18 MB, free: 4.965 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.424/1.424, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 51.92 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.34, allocations: 49.43 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02794/0.368, allocations: 26.7 MB / 426.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03557/0.4036, allocations: 22.35 MB / 449.3 MB, free: 7.613 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007703/0.4114, allocations: 170.6 kB / 449.5 MB, free: 7.445 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006529/0.418, allocations: 1.776 MB / 451.2 MB, free: 5.656 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01397/0.4321, allocations: 3.212 MB / 454.4 MB, free: 2.422 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007371/0.4395, allocations: 1.627 MB / 456.1 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0238/0.4633, allocations: 12.67 MB / 468.7 MB, free: 4.074 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002274/0.4657, allocations: 0.8552 MB / 469.6 MB, free: 3.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004321/0.47, allocations: 2.064 MB / 471.7 MB, free: 1.105 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004271/0.4743, allocations: 2.103 MB / 473.8 MB, free: 14.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006155/0.4749, allocations: 132 kB / 473.9 MB, free: 14.86 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00638/0.4813, allocations: 1.529 MB / 475.4 MB, free: 13.33 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001272/0.4826, allocations: 0.6126 MB / 476 MB, free: 12.71 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005373/0.488, allocations: 2.616 MB / 478.7 MB, free: 10.08 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01402/0.5021, allocations: 6.671 MB / 485.3 MB, free: 3.375 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.856e-06/0.5022, allocations: 4 kB / 485.3 MB, free: 3.371 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.5022, allocations: 0 / 485.3 MB, free: 3.371 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002869/0.5025, allocations: 0 / 485.3 MB, free: 3.371 MB / 398.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.01305/0.5155, allocations: 6.923 MB / 492.3 MB, free: 12.35 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.906e-05/0.5156, allocations: 11.89 kB / 492.3 MB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002715/0.5159, allocations: 169.1 kB / 492.4 MB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00137/0.5173, allocations: 0.7802 MB / 493.2 MB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009155/0.5264, allocations: 4.652 MB / 497.9 MB, free: 6.641 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.031e-05/0.5266, allocations: 73.97 kB / 497.9 MB, free: 6.566 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002786/0.5268, allocations: 103.8 kB / 498 MB, free: 6.465 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002563/0.5294, allocations: 1.305 MB / 499.3 MB, free: 5.145 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.306e-05/0.5295, allocations: 0 / 499.3 MB, free: 5.145 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001422/0.5296, allocations: 36 kB / 499.4 MB, free: 5.109 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.523e-05/0.5297, allocations: 39.97 kB / 499.4 MB, free: 5.07 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002767/0.5324, allocations: 1.48 MB / 0.4892 GB, free: 3.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01324/0.5457, allocations: 5.612 MB / 0.4946 GB, free: 13.89 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001962/0.5477, allocations: 0.9889 MB / 0.4956 GB, free: 12.89 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001865/0.5496, allocations: 1.227 MB / 0.4968 GB, free: 11.66 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3281/0.8777, allocations: 59.8 MB / 0.5552 GB, free: 117 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008682/0.8786, allocations: 0.5623 MB / 0.5558 GB, free: 116.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 3.176e-06/0.8787, allocations: 0 / 0.5558 GB, free: 116.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.00325/0.8819, allocations: 1.912 MB / 0.5576 GB, free: 116.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/0.882, allocations: 61.09 kB / 0.5577 GB, free: 116.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00539/0.8874, allocations: 5.584 MB / 0.5631 GB, free: 112.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001201/0.8875, allocations: 44.45 kB / 0.5632 GB, free: 112.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001759/0.8893, allocations: 2.969 MB / 0.5661 GB, free: 109.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002648/0.8895, allocations: 316.2 kB / 0.5664 GB, free: 109.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004039/0.89, allocations: 423 kB / 0.5668 GB, free: 109.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.57e-05/0.89, allocations: 301.1 kB / 0.5671 GB, free: 108.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007394/0.8908, allocations: 411.2 kB / 0.5675 GB, free: 108.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009353/0.8917, allocations: 1.089 MB / 0.5685 GB, free: 107.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001728/0.8934, allocations: 1.613 MB / 0.5701 GB, free: 105.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.8935, allocations: 4 kB / 0.5701 GB, free: 105.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00303/0.8965, allocations: 2.237 MB / 0.5723 GB, free: 103.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.8965, allocations: 19.94 kB / 0.5723 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001634/0.8967, allocations: 164 kB / 0.5725 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.683e-05/0.8967, allocations: 32 kB / 0.5725 GB, free: 102.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.8978, allocations: 359.1 kB / 0.5728 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.917e-05/0.8978, allocations: 47.86 kB / 0.5729 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001892/0.8997, allocations: 195.6 kB / 0.5731 GB, free: 102.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000149/0.8999, allocations: 120 kB / 0.5732 GB, free: 102.2 MB / 462.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.001172/0.9011, allocations: 0.7158 MB / 0.5739 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006298/0.9017, allocations: 0.753 MB / 0.5746 GB, free: 100.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003728/0.9054, allocations: 2.155 MB / 0.5767 GB, free: 98.64 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.9055, allocations: 11.36 kB / 0.5767 GB, free: 98.63 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.9055, allocations: 4 kB / 0.5767 GB, free: 98.62 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.9055, allocations: 3.984 kB / 0.5767 GB, free: 98.62 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004319/0.9098, allocations: 3.601 MB / 0.5803 GB, free: 94.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001393/0.91, allocations: 143.9 kB / 0.5804 GB, free: 94.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006953/0.9107, allocations: 155.8 kB / 0.5805 GB, free: 94.69 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.9107, allocations: 0 / 0.5805 GB, free: 94.69 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.906e-05/0.9108, allocations: 60 kB / 0.5806 GB, free: 94.63 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.511e-06/0.9108, allocations: 13.39 kB / 0.5806 GB, free: 94.62 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.9108, allocations: 0 / 0.5806 GB, free: 94.62 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002738/0.9135, allocations: 2.196 MB / 0.5828 GB, free: 92.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001081/0.9146, allocations: 0.8517 MB / 0.5836 GB, free: 91.54 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005118/0.9151, allocations: 12 kB / 0.5836 GB, free: 91.53 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.9162, allocations: 43.95 kB / 0.5836 GB, free: 91.49 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/0.9164, allocations: 92.48 kB / 0.5837 GB, free: 91.39 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.9165, allocations: 68 kB / 0.5838 GB, free: 91.33 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003976/0.9205, allocations: 3.604 MB / 0.5873 GB, free: 87.75 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.9205, allocations: 4 kB / 0.5873 GB, free: 87.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002166/0.9226, allocations: 1.079 MB / 0.5884 GB, free: 86.74 MB / 462.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.004219/0.9269, allocations: 3.846 MB / 0.5921 GB, free: 82.93 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002102/0.929, allocations: 1.432 MB / 0.5935 GB, free: 81.45 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.929, allocations: 0 / 0.5935 GB, free: 81.45 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009069/0.9299, allocations: 0.7708 MB / 0.5943 GB, free: 80.63 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004863/0.9348, allocations: 1.17 MB / 0.5954 GB, free: 79.46 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0384/0.9732, allocations: 30.57 MB / 0.6253 GB, free: 48.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001476/0.9747, allocations: 2.595 MB / 0.6278 GB, free: 45.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001936/0.9767, allocations: 0.6768 MB / 0.6285 GB, free: 44.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001856/0.9785, allocations: 2.397 MB / 0.6308 GB, free: 42.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/0.9786, allocations: 4 kB / 0.6308 GB, free: 42.39 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3991/1.378, allocations: 110.8 MB / 0.7391 GB, free: 162.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.48/29.86, allocations: 3.078 kB / 0.7391 GB, free: 162.3 MB / 0.4981 GB (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