Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001058/0.001058, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 227.2 MB / 245 MB, free: 7.66 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007965/0.0007965, allocations: 102.4 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002035/0.0002035, allocations: 8 kB / 358 MB, free: 9.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1826/0.1828, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09193/0.2748, allocations: 85.64 MB / 495.1 MB, free: 4.969 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.2751, allocations: 76.45 kB / 495.2 MB, free: 4.895 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0423/0.3174, allocations: 19.02 MB / 0.5022 GB, free: 1.578 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3174, allocations: 0 / 0.5022 GB, free: 1.578 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.523e-05/0.3175, allocations: 31.98 kB / 0.5022 GB, free: 1.547 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.001705/0.3192, allocations: 1.228 MB / 0.5034 GB, free: 272 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.3193, allocations: 8.031 kB / 0.5034 GB, free: 264 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001812/0.3194, allocations: 181.6 kB / 0.5036 GB, free: 72 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1522/0.4717, allocations: 158.9 kB / 0.5037 GB, free: 87.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.4729, allocations: 0.639 MB / 0.5044 GB, free: 86.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.962e-05/0.473, allocations: 88.56 kB / 0.5044 GB, free: 86.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001763/0.4732, allocations: 119.8 kB / 0.5046 GB, free: 86.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001891/0.4751, allocations: 1.252 MB / 0.5058 GB, free: 86.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.279e-05/0.4751, allocations: 8.938 kB / 0.5058 GB, free: 86.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-05/0.4752, allocations: 53.81 kB / 0.5058 GB, free: 86.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.741e-05/0.4752, allocations: 32.97 kB / 0.5059 GB, free: 86.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.4764, allocations: 0.6865 MB / 0.5065 GB, free: 86.33 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004422/0.4808, allocations: 6.867 MB / 0.5133 GB, free: 81.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005972/0.4814, allocations: 270.8 kB / 0.5135 GB, free: 81.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001172/0.4815, allocations: 85.72 kB / 0.5136 GB, free: 81.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.4816, allocations: 36.72 kB / 0.5136 GB, free: 81.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 2.956e-06/0.4816, allocations: 0 / 0.5136 GB, free: 81.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.001991/0.4836, allocations: 1.416 MB / 0.515 GB, free: 80.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.406e-05/0.4836, allocations: 83.86 kB / 0.5151 GB, free: 80.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004978/0.4841, allocations: 0.5736 MB / 0.5157 GB, free: 80.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.4841, allocations: 29.14 kB / 0.5157 GB, free: 80.22 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002341/0.4844, allocations: 0.6806 MB / 0.5163 GB, free: 79.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.3e-05/0.4844, allocations: 117 kB / 0.5165 GB, free: 79.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.028e-05/0.4845, allocations: 23.62 kB / 0.5165 GB, free: 79.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.78e-05/0.4846, allocations: 385.1 kB / 0.5168 GB, free: 79.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002385/0.4848, allocations: 147.6 kB / 0.517 GB, free: 79.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003257/0.4851, allocations: 0.5502 MB / 0.5175 GB, free: 78.91 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.0004437/0.4856, allocations: 450 kB / 0.518 GB, free: 78.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.4856, allocations: 5.094 kB / 0.518 GB, free: 78.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.0009435/0.4865, allocations: 0.7942 MB / 0.5187 GB, free: 78.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.4866, allocations: 14.16 kB / 0.5187 GB, free: 78.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.4866, allocations: 11.66 kB / 0.5188 GB, free: 78.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001861/0.4868, allocations: 85.25 kB / 0.5188 GB, free: 78.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004589/0.4872, allocations: 178.9 kB / 0.519 GB, free: 78.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001448/0.4887, allocations: 2.987 MB / 0.5219 GB, free: 75.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/0.4891, allocations: 33.5 kB / 0.522 GB, free: 75.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.72e-05/0.4891, allocations: 53.39 kB / 0.522 GB, free: 75.61 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.0002719/0.4894, allocations: 276.7 kB / 0.5223 GB, free: 75.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.595e-05/0.4895, allocations: 76.59 kB / 0.5223 GB, free: 75.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.004e-05/0.4896, allocations: 71.81 kB / 0.5224 GB, free: 75.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.4896, allocations: 8.969 kB / 0.5224 GB, free: 75.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4896, allocations: 0 / 0.5224 GB, free: 75.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4896, allocations: 0 / 0.5224 GB, free: 75.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001332/0.4909, allocations: 1.244 MB / 0.5236 GB, free: 74.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.4909, allocations: 3.781 kB / 0.5236 GB, free: 74.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002946/0.4912, allocations: 70.33 kB / 0.5237 GB, free: 74.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001192/0.4914, allocations: 52.06 kB / 0.5238 GB, free: 74.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.4914, allocations: 11.91 kB / 0.5238 GB, free: 74.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001177/0.4926, allocations: 2.784 MB / 0.5265 GB, free: 71.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4926, allocations: 0 / 0.5265 GB, free: 71.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006625/0.4933, allocations: 0.6752 MB / 0.5271 GB, free: 71.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.567e-05/0.4934, allocations: 145 kB / 0.5273 GB, free: 71.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.692e-05/0.4934, allocations: 12.91 kB / 0.5273 GB, free: 71.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002456/0.4937, allocations: 17.8 kB / 0.5273 GB, free: 71.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.32e-05/0.4937, allocations: 21.64 kB / 0.5273 GB, free: 71.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.4938, allocations: 8.906 kB / 0.5273 GB, free: 71.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003418/0.4941, allocations: 431.1 kB / 0.5278 GB, free: 70.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4941, allocations: 0 / 0.5278 GB, free: 70.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006814/0.4948, allocations: 165.4 kB / 0.5279 GB, free: 70.94 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.0008413/0.4956, allocations: 1.437 MB / 0.5293 GB, free: 69.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007483/0.4964, allocations: 0.6632 MB / 0.53 GB, free: 69.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.4964, allocations: 0 / 0.53 GB, free: 69.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003533/0.4968, allocations: 359.7 kB / 0.5303 GB, free: 69.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003117/0.4971, allocations: 71.44 kB / 0.5304 GB, free: 69.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005964/0.5031, allocations: 14.61 MB / 0.5446 GB, free: 56.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.5035, allocations: 1.059 MB / 0.5457 GB, free: 55.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002479/0.5037, allocations: 81.22 kB / 0.5458 GB, free: 55.56 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003191/0.504, allocations: 424 kB / 0.5462 GB, free: 55.22 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.504, allocations: 0 / 0.5462 GB, free: 55.22 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0222/0.5263, allocations: 12.45 MB / 0.5583 GB, free: 46.79 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001317/0.5264, allocations: 198.9 kB / 0.5585 GB, free: 46.55 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.122/2.648, allocations: 7.938 kB / 0.5585 GB, free: 46.54 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat