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.001437/0.001437, allocations: 114.6 kB / 16.63 MB, free: 6.812 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.001558/0.001558, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.356/1.356, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009963/0.0009963, allocations: 51.41 kB / 300.2 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08158/0.08259, allocations: 49.44 MB / 349.7 MB, free: 4.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1707/0.2533, allocations: 26.41 MB / 376.1 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02357/0.2769, allocations: 22.2 MB / 398.3 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005522/0.2825, allocations: 60.34 kB / 398.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005699/0.2882, allocations: 1.505 MB / 399.8 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01364/0.3019, allocations: 2.773 MB / 402.6 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007459/0.3094, allocations: 1.414 MB / 404 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02066/0.3301, allocations: 12.79 MB / 416.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001537/0.3317, allocations: 0.8638 MB / 417.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003449/0.3351, allocations: 2.076 MB / 419.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002571/0.3377, allocations: 2.1 MB / 421.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003568/0.3381, allocations: 144 kB / 422 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004377/0.3425, allocations: 1.545 MB / 423.5 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006013/0.3431, allocations: 0.6049 MB / 424.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002868/0.346, allocations: 2.631 MB / 426.8 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007412/0.3534, allocations: 6.556 MB / 433.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.3534, allocations: 4 kB / 433.3 MB, free: 1.246 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3534, allocations: 0 / 433.3 MB, free: 1.246 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001223/0.3535, allocations: 0 / 433.3 MB, free: 1.246 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.008787/0.3623, allocations: 6.698 MB / 440 MB, free: 10.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.3624, allocations: 8.031 kB / 440 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001992/0.3626, allocations: 161.2 kB / 440.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000749/0.3634, allocations: 0.7409 MB / 440.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006508/0.3699, allocations: 4.636 MB / 445.6 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.013e-05/0.3699, allocations: 66 kB / 445.6 MB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002039/0.3701, allocations: 99.84 kB / 445.7 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002182/0.3723, allocations: 1.305 MB / 447 MB, free: 3.312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.3724, allocations: 0 / 447 MB, free: 3.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/0.3725, allocations: 36 kB / 447.1 MB, free: 3.277 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.546e-05/0.3725, allocations: 39.97 kB / 447.1 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002403/0.3749, allocations: 1.476 MB / 448.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008952/0.3839, allocations: 5.634 MB / 454.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001641/0.3856, allocations: 0.9851 MB / 455.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001593/0.3872, allocations: 1.227 MB / 456.4 MB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05613/0.4433, allocations: 59.81 MB / 0.5042 GB, free: 5.82 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/0.4445, allocations: 0.5598 MB / 0.5047 GB, free: 5.246 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 3.857e-06/0.4445, allocations: 4 kB / 0.5047 GB, free: 5.242 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003769/0.4483, allocations: 1.871 MB / 0.5065 GB, free: 3.363 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.4483, allocations: 63.97 kB / 0.5066 GB, free: 3.285 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00737/0.4557, allocations: 5.586 MB / 0.512 GB, free: 13.72 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001919/0.4559, allocations: 45.64 kB / 0.5121 GB, free: 13.67 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002527/0.4585, allocations: 2.943 MB / 0.515 GB, free: 10.72 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003977/0.4589, allocations: 299.9 kB / 0.5153 GB, free: 10.42 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005644/0.4595, allocations: 422.4 kB / 0.5157 GB, free: 10 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.4596, allocations: 301.1 kB / 0.5159 GB, free: 9.707 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008997/0.4605, allocations: 407.8 kB / 0.5163 GB, free: 9.309 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/0.4618, allocations: 1.087 MB / 0.5174 GB, free: 7.891 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002193/0.464, allocations: 1.615 MB / 0.519 GB, free: 5.945 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.316e-05/0.464, allocations: 9.5 kB / 0.519 GB, free: 5.938 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00363/0.4676, allocations: 2.199 MB / 0.5211 GB, free: 3.727 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.069e-05/0.4677, allocations: 19.94 kB / 0.5211 GB, free: 3.707 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001941/0.4679, allocations: 167.9 kB / 0.5213 GB, free: 3.543 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.503e-05/0.4679, allocations: 32 kB / 0.5213 GB, free: 3.512 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/0.4691, allocations: 351.4 kB / 0.5217 GB, free: 3.168 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.846e-05/0.4691, allocations: 55.73 kB / 0.5217 GB, free: 3.113 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001668/0.4708, allocations: 194.2 kB / 0.5219 GB, free: 2.922 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001865/0.471, allocations: 120 kB / 0.522 GB, free: 2.805 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.001199/0.4722, allocations: 0.7043 MB / 0.5227 GB, free: 2.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006729/0.4729, allocations: 0.714 MB / 0.5234 GB, free: 1.367 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1489/0.6218, allocations: 2.15 MB / 0.5255 GB, free: 155.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-05/0.6218, allocations: 10.62 kB / 0.5255 GB, free: 155.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.6218, allocations: 0.7969 kB / 0.5255 GB, free: 155.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.6219, allocations: 4.547 kB / 0.5255 GB, free: 155.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005767/0.6276, allocations: 3.602 MB / 0.529 GB, free: 154.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001783/0.6278, allocations: 139.8 kB / 0.5292 GB, free: 154.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007338/0.6286, allocations: 155.2 kB / 0.5293 GB, free: 154.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/0.6286, allocations: 3.719 kB / 0.5293 GB, free: 154.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.932e-05/0.6287, allocations: 60.14 kB / 0.5294 GB, free: 154.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.848e-06/0.6287, allocations: 8.266 kB / 0.5294 GB, free: 154.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.6287, allocations: 2.5 kB / 0.5294 GB, free: 154.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004162/0.6329, allocations: 2.159 MB / 0.5315 GB, free: 153.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001329/0.6342, allocations: 0.8175 MB / 0.5323 GB, free: 153.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005144/0.6348, allocations: 17 kB / 0.5323 GB, free: 153.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.6359, allocations: 33.59 kB / 0.5323 GB, free: 153.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002361/0.6361, allocations: 100.2 kB / 0.5324 GB, free: 153.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001501/0.6363, allocations: 70.61 kB / 0.5325 GB, free: 153.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005381/0.6416, allocations: 3.605 MB / 0.536 GB, free: 152.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6417, allocations: 0 / 0.536 GB, free: 152.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002706/0.6444, allocations: 1.078 MB / 0.5371 GB, free: 152 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.004717/0.6491, allocations: 3.81 MB / 0.5408 GB, free: 150.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002463/0.6516, allocations: 1.464 MB / 0.5422 GB, free: 149.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.6516, allocations: 0 / 0.5422 GB, free: 149.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008982/0.6525, allocations: 0.7653 MB / 0.543 GB, free: 149.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004146/0.6567, allocations: 1.207 MB / 0.5442 GB, free: 148.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07511/0.7318, allocations: 49.16 MB / 0.5922 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/0.733, allocations: 2.595 MB / 0.5947 GB, free: 98.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002335/0.7354, allocations: 0.6846 MB / 0.5954 GB, free: 97.83 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001601/0.737, allocations: 2.397 MB / 0.5977 GB, free: 95.43 MB / 446.1 MB Notification: Performance of SimCode: time 6.52e-07/0.737, allocations: 0 / 0.5977 GB, free: 95.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3014/1.038, allocations: 109.3 MB / 0.7044 GB, free: 141.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001451/1.039, allocations: 207.4 kB / 0.7046 GB, free: 141.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.451/6.49, allocations: 0.9844 kB / 0.7046 GB, free: 141.6 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