Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001172/0.001171, allocations: 171.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007858/0.0007858, allocations: 78.78 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.553e-05/2.563e-05, allocations: 3.938 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08519/0.08523, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2926/0.3778, allocations: 83.33 MB / 453.4 MB, free: 10.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001941/0.3781, allocations: 76.02 kB / 453.5 MB, free: 9.984 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0423/0.4204, allocations: 18.57 MB / 472.1 MB, free: 8.535 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.806e-06/0.4204, allocations: 4 kB / 472.1 MB, free: 8.531 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.828e-05/0.4205, allocations: 38.06 kB / 472.1 MB, free: 8.496 MB / 346.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.001635/0.4221, allocations: 1.147 MB / 473.3 MB, free: 7.301 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.4222, allocations: 8.031 kB / 473.3 MB, free: 7.293 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001801/0.4224, allocations: 181.6 kB / 473.5 MB, free: 7.105 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.4225, allocations: 142.3 kB / 473.6 MB, free: 6.965 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009027/0.4235, allocations: 0.6331 MB / 474.2 MB, free: 6.285 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.44e-05/0.4235, allocations: 90.41 kB / 474.3 MB, free: 6.195 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.4237, allocations: 116 kB / 474.4 MB, free: 6.082 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001711/0.4254, allocations: 1.233 MB / 475.7 MB, free: 4.68 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.126e-05/0.4254, allocations: 7.844 kB / 475.7 MB, free: 4.672 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.891e-05/0.4255, allocations: 56 kB / 475.7 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.471e-05/0.4256, allocations: 32 kB / 475.8 MB, free: 4.586 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.4267, allocations: 0.6463 MB / 476.4 MB, free: 3.941 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00527/0.4319, allocations: 6.848 MB / 483.3 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005831/0.4325, allocations: 249.4 kB / 483.5 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002802/0.4328, allocations: 169.6 kB / 483.7 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001206/0.433, allocations: 85.09 kB / 483.8 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.433, allocations: 46.52 kB / 483.8 MB, free: 12.17 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 2.094e-06/0.433, allocations: 3.938 kB / 483.8 MB, free: 12.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.001779/0.4348, allocations: 1.264 MB / 485.1 MB, free: 10.79 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.4348, allocations: 85.05 kB / 485.2 MB, free: 10.69 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005872/0.4354, allocations: 0.5703 MB / 485.7 MB, free: 10.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.4355, allocations: 29.7 kB / 485.8 MB, free: 10.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003537/0.4358, allocations: 0.672 MB / 486.4 MB, free: 9.387 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.386e-05/0.4359, allocations: 126.4 kB / 486.5 MB, free: 9.262 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.205e-05/0.4359, allocations: 12 kB / 486.6 MB, free: 9.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.4361, allocations: 382.8 kB / 486.9 MB, free: 8.867 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/0.4363, allocations: 133.8 kB / 487.1 MB, free: 8.734 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004288/0.4367, allocations: 0.5222 MB / 487.6 MB, free: 8.012 MB / 362.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.00051/0.4373, allocations: 434.4 kB / 488 MB, free: 7.555 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.4373, allocations: 4 kB / 488 MB, free: 7.551 MB / 362.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001028/0.4383, allocations: 0.756 MB / 488.8 MB, free: 6.781 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.4383, allocations: 8 kB / 488.8 MB, free: 6.773 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.4384, allocations: 16 kB / 488.8 MB, free: 6.758 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002133/0.4386, allocations: 90.36 kB / 488.9 MB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005114/0.4391, allocations: 183.7 kB / 489.1 MB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002093/0.4412, allocations: 2.97 MB / 492 MB, free: 3.242 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003482/0.4416, allocations: 32 kB / 492.1 MB, free: 3.211 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.362e-05/0.4416, allocations: 40 kB / 492.1 MB, free: 3.172 MB / 362.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.000139/0.4418, allocations: 180.5 kB / 492.3 MB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.831e-05/0.4419, allocations: 71.16 kB / 492.3 MB, free: 2.918 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001255/0.442, allocations: 70.53 kB / 492.4 MB, free: 2.848 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-06/0.442, allocations: 8.062 kB / 492.4 MB, free: 2.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.442, allocations: 0 / 492.4 MB, free: 2.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.442, allocations: 0 / 492.4 MB, free: 2.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001578/0.4436, allocations: 1.228 MB / 493.7 MB, free: 1.539 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.4436, allocations: 4 kB / 493.7 MB, free: 1.535 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003062/0.4439, allocations: 63.95 kB / 493.7 MB, free: 1.473 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001448/0.4441, allocations: 53.62 kB / 493.8 MB, free: 1.414 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.185e-05/0.4441, allocations: 11.94 kB / 493.8 MB, free: 1.402 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/0.4459, allocations: 2.76 MB / 496.5 MB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4459, allocations: 7.969 kB / 496.5 MB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006992/0.4466, allocations: 0.6505 MB / 497.2 MB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.4468, allocations: 136.2 kB / 497.3 MB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.675e-05/0.4468, allocations: 8 kB / 497.3 MB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002518/0.4471, allocations: 27.94 kB / 497.4 MB, free: 13.47 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.531e-05/0.4472, allocations: 23.97 kB / 497.4 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.4472, allocations: 4 kB / 497.4 MB, free: 13.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004966/0.4477, allocations: 431.1 kB / 497.8 MB, free: 13.03 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4477, allocations: 0 / 497.8 MB, free: 13.03 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008249/0.4485, allocations: 160 kB / 498 MB, free: 12.87 MB / 378.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.0009916/0.4495, allocations: 1.468 MB / 499.4 MB, free: 11.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009157/0.4505, allocations: 0.6298 MB / 0.4884 GB, free: 10.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4505, allocations: 0 / 0.4884 GB, free: 10.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003964/0.4509, allocations: 349.1 kB / 0.4887 GB, free: 10.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003735/0.4513, allocations: 71.84 kB / 0.4888 GB, free: 10.26 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00268/0.4539, allocations: 1.519 MB / 0.4902 GB, free: 8.684 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00053/0.4545, allocations: 1.058 MB / 0.4913 GB, free: 7.598 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002685/0.4548, allocations: 82.03 kB / 0.4913 GB, free: 7.516 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004121/0.4552, allocations: 419.3 kB / 0.4917 GB, free: 7.102 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.4552, allocations: 0 / 0.4917 GB, free: 7.102 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02464/0.4798, allocations: 12.44 MB / 0.5039 GB, free: 10.64 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001567/0.48, allocations: 170.3 kB / 0.5041 GB, free: 10.43 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.196/2.676, allocations: 4.062 kB / 0.5041 GB, free: 10.42 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat