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.001185/0.001185, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.409/1.409, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009114/0.0009114, allocations: 101.2 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002499/0.0002499, allocations: 4 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2858, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1157/0.4016, allocations: 84.82 MB / 486.4 MB, free: 11.65 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000346/0.4021, allocations: 75.97 kB / 486.5 MB, free: 11.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05999/0.4621, allocations: 18.96 MB / 0.4936 GB, free: 8.316 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.936e-06/0.4621, allocations: 0 / 0.4936 GB, free: 8.316 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.908e-05/0.4622, allocations: 31.98 kB / 0.4936 GB, free: 8.285 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.002793/0.465, allocations: 1.236 MB / 0.4948 GB, free: 6.996 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.59e-05/0.4651, allocations: 8.031 kB / 0.4948 GB, free: 6.988 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002996/0.4654, allocations: 177.7 kB / 0.495 GB, free: 6.805 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003/0.4657, allocations: 142.3 kB / 0.4951 GB, free: 6.664 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001431/0.4672, allocations: 0.633 MB / 0.4958 GB, free: 5.988 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/0.4673, allocations: 94.41 kB / 0.4958 GB, free: 5.895 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002172/0.4675, allocations: 123.9 kB / 0.496 GB, free: 5.773 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002718/0.4703, allocations: 1.248 MB / 0.4972 GB, free: 4.352 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.567e-05/0.4703, allocations: 11.92 kB / 0.4972 GB, free: 4.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000126/0.4705, allocations: 48 kB / 0.4972 GB, free: 4.293 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.467e-05/0.4705, allocations: 32 kB / 0.4973 GB, free: 4.262 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001769/0.4723, allocations: 0.689 MB / 0.4979 GB, free: 3.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3073/0.7796, allocations: 6.849 MB / 0.5046 GB, free: 86.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009462/0.7806, allocations: 266.3 kB / 0.5049 GB, free: 86.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001974/0.7808, allocations: 89.22 kB / 0.505 GB, free: 86.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/0.7808, allocations: 40.25 kB / 0.505 GB, free: 86.72 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 3.005e-06/0.7808, allocations: 0 / 0.505 GB, free: 86.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.002925/0.7838, allocations: 1.409 MB / 0.5064 GB, free: 85.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.7838, allocations: 83.48 kB / 0.5065 GB, free: 85.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009232/0.7848, allocations: 0.5679 MB / 0.507 GB, free: 85.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.86e-05/0.7848, allocations: 32.81 kB / 0.507 GB, free: 85.72 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005348/0.7854, allocations: 0.6806 MB / 0.5077 GB, free: 85.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.7855, allocations: 117.9 kB / 0.5078 GB, free: 85.33 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.799e-05/0.7855, allocations: 16.22 kB / 0.5078 GB, free: 85.33 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.7857, allocations: 388.8 kB / 0.5082 GB, free: 85.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003418/0.786, allocations: 146.1 kB / 0.5084 GB, free: 85.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006866/0.7867, allocations: 0.5534 MB / 0.5089 GB, free: 84.49 MB / 378.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.0007451/0.7875, allocations: 454.9 kB / 0.5093 GB, free: 84.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.859e-06/0.7875, allocations: 3.531 kB / 0.5093 GB, free: 84.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001684/0.7892, allocations: 0.7925 MB / 0.5101 GB, free: 84.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.085e-05/0.7892, allocations: 11.84 kB / 0.5101 GB, free: 84.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.146e-05/0.7893, allocations: 15.12 kB / 0.5101 GB, free: 84.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002772/0.7896, allocations: 84.67 kB / 0.5102 GB, free: 84.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005174/0.7901, allocations: 186.1 kB / 0.5104 GB, free: 84.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001885/0.792, allocations: 2.986 MB / 0.5133 GB, free: 81.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004743/0.7925, allocations: 37.19 kB / 0.5133 GB, free: 81.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-05/0.7925, allocations: 46.97 kB / 0.5134 GB, free: 81.5 MB / 378.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 () * Number of clocked 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.0005892/0.7931, allocations: 268.5 kB / 0.5136 GB, free: 81.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.7933, allocations: 75.5 kB / 0.5137 GB, free: 81.33 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001161/0.7934, allocations: 72.33 kB / 0.5138 GB, free: 81.31 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.7934, allocations: 2.75 kB / 0.5138 GB, free: 81.31 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.608e-05/0.7934, allocations: 5.438 kB / 0.5138 GB, free: 81.31 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.7934, allocations: 0 / 0.5138 GB, free: 81.31 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001738/0.7952, allocations: 1.242 MB / 0.515 GB, free: 80.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.7952, allocations: 6.812 kB / 0.515 GB, free: 80.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003054/0.7955, allocations: 70.73 kB / 0.5151 GB, free: 80.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001364/0.7957, allocations: 50.62 kB / 0.5151 GB, free: 80.87 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/0.7957, allocations: 10.44 kB / 0.5151 GB, free: 80.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001496/0.7972, allocations: 2.78 MB / 0.5178 GB, free: 78.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.7972, allocations: 0 / 0.5178 GB, free: 78.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008503/0.7981, allocations: 0.6776 MB / 0.5185 GB, free: 77.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.7982, allocations: 138 kB / 0.5186 GB, free: 77.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.932e-05/0.7983, allocations: 6.719 kB / 0.5186 GB, free: 77.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002697/0.7985, allocations: 20.7 kB / 0.5187 GB, free: 77.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.325e-05/0.7986, allocations: 24.81 kB / 0.5187 GB, free: 77.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.7987, allocations: 9.609 kB / 0.5187 GB, free: 77.78 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004599/0.7991, allocations: 434.6 kB / 0.5191 GB, free: 77.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7991, allocations: 0 / 0.5191 GB, free: 77.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001072/0.8002, allocations: 157.8 kB / 0.5193 GB, free: 77.69 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 () * Number of clocked 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.001095/0.8013, allocations: 1.441 MB / 0.5207 GB, free: 76.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.8024, allocations: 0.6618 MB / 0.5213 GB, free: 76.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.8024, allocations: 3.625 kB / 0.5213 GB, free: 76.33 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004131/0.8028, allocations: 360.2 kB / 0.5217 GB, free: 76.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004031/0.8032, allocations: 73.11 kB / 0.5217 GB, free: 76.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009021/0.8122, allocations: 14.62 MB / 0.536 GB, free: 63.74 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005314/0.8128, allocations: 1.062 MB / 0.5371 GB, free: 63.03 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003398/0.8132, allocations: 84.39 kB / 0.5371 GB, free: 63.01 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004359/0.8136, allocations: 422 kB / 0.5375 GB, free: 62.67 MB / 378.7 MB Notification: Performance of SimCode: time 1.133e-06/0.8136, allocations: 0 / 0.5375 GB, free: 62.67 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02902/0.8427, allocations: 12.44 MB / 0.5497 GB, free: 56.86 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002006/0.8429, allocations: 207.3 kB / 0.5499 GB, free: 56.61 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.398/3.241, allocations: 0 / 0.5499 GB, free: 56.61 MB / 378.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