Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009791/0.0009791, allocations: 175.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 221.3 MB / 235.5 MB, free: 2.898 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007644/0.0007644, allocations: 87.8 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.595e-05/2.597e-05, allocations: 0 / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08362/0.08366, allocations: 50.42 MB / 394.3 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2835/0.3672, allocations: 84.75 MB / 479.1 MB, free: 2.707 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/0.3675, allocations: 67.97 kB / 479.2 MB, free: 2.641 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04503/0.4126, allocations: 18.94 MB / 498.1 MB, free: 15.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4126, allocations: 4 kB / 498.1 MB, free: 15.4 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.89e-05/0.4127, allocations: 31.98 kB / 498.1 MB, free: 15.37 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.001757/0.4145, allocations: 1.139 MB / 499.3 MB, free: 14.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.4145, allocations: 8.031 kB / 499.3 MB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002254/0.4147, allocations: 181.6 kB / 499.5 MB, free: 13.99 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000212/0.415, allocations: 146.2 kB / 499.6 MB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009884/0.416, allocations: 0.637 MB / 0.4885 GB, free: 13.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.216e-05/0.416, allocations: 86.41 kB / 0.4886 GB, free: 13.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001426/0.4162, allocations: 119.9 kB / 0.4887 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001771/0.418, allocations: 1.221 MB / 0.4899 GB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.731e-05/0.418, allocations: 3.938 kB / 0.4899 GB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.68e-05/0.4181, allocations: 59.98 kB / 0.49 GB, free: 11.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.547e-05/0.4181, allocations: 32 kB / 0.49 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.4192, allocations: 0.6385 MB / 0.4906 GB, free: 10.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005424/0.4247, allocations: 6.855 MB / 0.4973 GB, free: 3.645 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005809/0.4253, allocations: 249.3 kB / 0.4976 GB, free: 3.383 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002838/0.4256, allocations: 169.8 kB / 0.4977 GB, free: 3.211 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001328/0.4257, allocations: 81.11 kB / 0.4978 GB, free: 3.113 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.4257, allocations: 38.56 kB / 0.4978 GB, free: 3.066 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 1.853e-06/0.4257, allocations: 0 / 0.4978 GB, free: 3.066 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.001889/0.4276, allocations: 1.279 MB / 0.4991 GB, free: 1.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.665e-05/0.4277, allocations: 85.05 kB / 0.4992 GB, free: 1.578 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006226/0.4283, allocations: 0.5663 MB / 0.4997 GB, free: 1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.4284, allocations: 29.7 kB / 0.4997 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003962/0.4288, allocations: 0.6759 MB / 0.5004 GB, free: 284 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.766e-05/0.4288, allocations: 122.4 kB / 0.5005 GB, free: 160 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.38e-05/0.4289, allocations: 16 kB / 0.5005 GB, free: 144 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.4291, allocations: 394.7 kB / 0.5009 GB, free: 15.75 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002228/0.4293, allocations: 129.8 kB / 0.501 GB, free: 15.61 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004517/0.4297, allocations: 0.5222 MB / 0.5015 GB, free: 14.9 MB / 394.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y ($START.inverseCapacitor1.capacitor.v = $START.directCapacitor1.currentToVoltage.y) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y ($START.inverseInductor3.inductor.i = $START.directInductor3.currentToVoltage.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.0005438/0.4303, allocations: 440.1 kB / 0.502 GB, free: 14.43 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.4303, allocations: 4 kB / 0.502 GB, free: 14.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001075/0.4314, allocations: 0.7554 MB / 0.5027 GB, free: 13.66 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.4314, allocations: 16.23 kB / 0.5027 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/0.4315, allocations: 16 kB / 0.5027 GB, free: 13.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002173/0.4317, allocations: 81.7 kB / 0.5028 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005193/0.4322, allocations: 183.7 kB / 0.503 GB, free: 13.37 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002254/0.4345, allocations: 2.963 MB / 0.5059 GB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003501/0.4348, allocations: 35.98 kB / 0.5059 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.663e-05/0.4349, allocations: 44 kB / 0.506 GB, free: 10.06 MB / 394.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001693/0.4351, allocations: 160.7 kB / 0.5061 GB, free: 9.895 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.4352, allocations: 82.98 kB / 0.5062 GB, free: 9.812 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001292/0.4353, allocations: 66.55 kB / 0.5063 GB, free: 9.738 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.4353, allocations: 7.953 kB / 0.5063 GB, free: 9.73 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.4353, allocations: 3.938 kB / 0.5063 GB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.4353, allocations: 3.984 kB / 0.5063 GB, free: 9.723 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/0.437, allocations: 1.216 MB / 0.5075 GB, free: 8.434 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.4371, allocations: 4 kB / 0.5075 GB, free: 8.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003091/0.4374, allocations: 63.95 kB / 0.5075 GB, free: 8.367 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001408/0.4375, allocations: 61.72 kB / 0.5076 GB, free: 8.301 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/0.4376, allocations: 8 kB / 0.5076 GB, free: 8.293 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001838/0.4394, allocations: 2.752 MB / 0.5103 GB, free: 5.281 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.4394, allocations: 7.969 kB / 0.5103 GB, free: 5.273 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007175/0.4401, allocations: 0.6575 MB / 0.5109 GB, free: 4.559 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.4403, allocations: 132.2 kB / 0.5111 GB, free: 4.41 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.619e-05/0.4403, allocations: 8.062 kB / 0.5111 GB, free: 4.402 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.4406, allocations: 16 kB / 0.5111 GB, free: 4.387 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.481e-05/0.4407, allocations: 27.95 kB / 0.5111 GB, free: 4.359 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.802e-05/0.4407, allocations: 15.95 kB / 0.5111 GB, free: 4.344 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004607/0.4412, allocations: 423.2 kB / 0.5115 GB, free: 3.938 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4412, allocations: 0 / 0.5115 GB, free: 3.938 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007389/0.4419, allocations: 159.9 kB / 0.5117 GB, free: 3.781 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (inverseInductor3.inductor.i,inductor4a.i,inductor4b.i,directCapacitor1.currentToVoltage.y,capacitor2a.v,capacitor2b.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001085/0.443, allocations: 1.482 MB / 0.5131 GB, free: 2.238 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008903/0.4439, allocations: 0.6181 MB / 0.5137 GB, free: 1.598 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4439, allocations: 0 / 0.5137 GB, free: 1.598 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003921/0.4443, allocations: 350.3 kB / 0.5141 GB, free: 1.23 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.4447, allocations: 79.19 kB / 0.5141 GB, free: 1.152 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002569/0.4473, allocations: 1.515 MB / 0.5156 GB, free: 15.58 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005821/0.4478, allocations: 1.062 MB / 0.5167 GB, free: 14.49 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002721/0.4481, allocations: 82.03 kB / 0.5167 GB, free: 14.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004177/0.4486, allocations: 423.3 kB / 0.5171 GB, free: 14 MB / 410.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4486, allocations: 0 / 0.5171 GB, free: 14 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02622/0.4748, allocations: 12.43 MB / 0.5293 GB, free: 1.695 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001562/0.475, allocations: 182.3 kB / 0.5294 GB, free: 1.465 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.168/2.643, allocations: 4 kB / 0.5295 GB, free: 1.461 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat