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.001357/0.001357, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 225.4 MB / 240.1 MB, free: 15.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008859/0.0008859, allocations: 97.86 kB / 292.1 MB, free: 6.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.542e-05/4.555e-05, allocations: 4 kB / 350.6 MB, free: 2.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1079, allocations: 51.49 MB / 402.1 MB, free: 14.87 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3091/0.4171, allocations: 85.56 MB / 487.7 MB, free: 3.871 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002364/0.4174, allocations: 71.81 kB / 487.8 MB, free: 3.836 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04708/0.4645, allocations: 19.01 MB / 0.4949 GB, free: 2.289 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.939e-06/0.4645, allocations: 0 / 0.4949 GB, free: 2.289 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001023/0.4646, allocations: 35.94 kB / 0.4949 GB, free: 2.254 MB / 362.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.002306/0.4669, allocations: 1.15 MB / 0.496 GB, free: 1.066 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.467, allocations: 12.03 kB / 0.4961 GB, free: 1.055 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003171/0.4673, allocations: 177.7 kB / 0.4962 GB, free: 0.8711 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004613/0.4678, allocations: 169.9 kB / 0.4964 GB, free: 0.707 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.4689, allocations: 0.6292 MB / 0.497 GB, free: 32 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.469, allocations: 86.48 kB / 0.4971 GB, free: 15.94 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001663/0.4692, allocations: 121 kB / 0.4972 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00197/0.4712, allocations: 1.221 MB / 0.4984 GB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.587e-05/0.4712, allocations: 7.938 kB / 0.4984 GB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001179/0.4714, allocations: 56 kB / 0.4985 GB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.875e-05/0.4714, allocations: 32 kB / 0.4985 GB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.4726, allocations: 0.6454 MB / 0.4991 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006515/0.4791, allocations: 6.858 MB / 0.5058 GB, free: 6.516 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006414/0.4798, allocations: 258.3 kB / 0.5061 GB, free: 6.246 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003062/0.4801, allocations: 163.4 kB / 0.5062 GB, free: 6.082 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001478/0.4803, allocations: 85.11 kB / 0.5063 GB, free: 5.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.4803, allocations: 46.45 kB / 0.5063 GB, free: 5.926 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 1.883e-06/0.4803, allocations: 0 / 0.5063 GB, free: 5.926 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.002227/0.4826, allocations: 1.278 MB / 0.5076 GB, free: 4.535 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.4826, allocations: 81.11 kB / 0.5077 GB, free: 4.438 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000699/0.4834, allocations: 0.5624 MB / 0.5082 GB, free: 3.863 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.302e-05/0.4834, allocations: 33.7 kB / 0.5082 GB, free: 3.824 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004624/0.4839, allocations: 0.6759 MB / 0.5089 GB, free: 3.137 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.622e-05/0.484, allocations: 118.4 kB / 0.509 GB, free: 3.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.443e-05/0.484, allocations: 16 kB / 0.509 GB, free: 3.004 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.4842, allocations: 382.8 kB / 0.5094 GB, free: 2.621 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002361/0.4844, allocations: 125.8 kB / 0.5095 GB, free: 2.492 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004768/0.4849, allocations: 0.5338 MB / 0.51 GB, free: 1.762 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.0006389/0.4856, allocations: 432.8 kB / 0.5105 GB, free: 1.305 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/0.4856, allocations: 4 kB / 0.5105 GB, free: 1.301 MB / 378.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001143/0.4867, allocations: 0.7466 MB / 0.5112 GB, free: 0.543 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.4868, allocations: 14.03 kB / 0.5112 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.4868, allocations: 19.94 kB / 0.5112 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002364/0.487, allocations: 86.34 kB / 0.5113 GB, free: 432 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005284/0.4876, allocations: 183.7 kB / 0.5115 GB, free: 248 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002374/0.49, allocations: 2.966 MB / 0.5144 GB, free: 13.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003811/0.4903, allocations: 35.94 kB / 0.5144 GB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.426e-05/0.4904, allocations: 47.98 kB / 0.5145 GB, free: 12.93 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.0001578/0.4906, allocations: 169.5 kB / 0.5146 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.4907, allocations: 67.16 kB / 0.5147 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001341/0.4908, allocations: 74.53 kB / 0.5147 GB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.4908, allocations: 4 kB / 0.5148 GB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.4909, allocations: 4.062 kB / 0.5148 GB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.4909, allocations: 3.984 kB / 0.5148 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001736/0.4926, allocations: 1.22 MB / 0.516 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.4926, allocations: 4 kB / 0.516 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003259/0.493, allocations: 63.89 kB / 0.516 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001456/0.4931, allocations: 61.77 kB / 0.5161 GB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.4932, allocations: 8.562 kB / 0.5161 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001861/0.495, allocations: 2.761 MB / 0.5188 GB, free: 8.141 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.495, allocations: 4.031 kB / 0.5188 GB, free: 8.137 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007289/0.4958, allocations: 0.6442 MB / 0.5194 GB, free: 7.434 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.4959, allocations: 136.2 kB / 0.5195 GB, free: 7.281 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.757e-05/0.496, allocations: 8.062 kB / 0.5196 GB, free: 7.273 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002603/0.4962, allocations: 29.25 kB / 0.5196 GB, free: 7.246 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.914e-05/0.4963, allocations: 27.91 kB / 0.5196 GB, free: 7.219 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.4963, allocations: 15.98 kB / 0.5196 GB, free: 7.203 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000467/0.4968, allocations: 419.2 kB / 0.52 GB, free: 6.801 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4968, allocations: 0 / 0.52 GB, free: 6.801 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008327/0.4977, allocations: 160 kB / 0.5202 GB, free: 6.645 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.001137/0.4988, allocations: 1.468 MB / 0.5216 GB, free: 5.121 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009037/0.4997, allocations: 0.6212 MB / 0.5222 GB, free: 4.48 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4997, allocations: 0 / 0.5222 GB, free: 4.48 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004208/0.5002, allocations: 353.1 kB / 0.5226 GB, free: 4.109 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003777/0.5006, allocations: 69.08 kB / 0.5226 GB, free: 4.043 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002854/0.5034, allocations: 1.527 MB / 0.5241 GB, free: 2.461 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005422/0.504, allocations: 1.054 MB / 0.5251 GB, free: 1.379 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000285/0.5043, allocations: 94 kB / 0.5252 GB, free: 1.285 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004497/0.5047, allocations: 423.2 kB / 0.5256 GB, free: 0.8711 MB / 394.7 MB Notification: Performance of SimCode: time 3.71e-07/0.5047, allocations: 0 / 0.5256 GB, free: 0.8711 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02996/0.5347, allocations: 12.42 MB / 0.5378 GB, free: 4.676 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00022/0.535, allocations: 177.1 kB / 0.5379 GB, free: 4.453 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.312/2.847, allocations: 0 / 0.5379 GB, free: 4.453 MB / 410.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