Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_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.001536/0.001536, allocations: 186 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.029/2.029, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001204/0.001204, allocations: 101.8 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005464/0.0005464, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.3331, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1514/0.4846, allocations: 83.43 MB / 458.1 MB, free: 13.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/0.485, allocations: 71.97 kB / 458.1 MB, free: 13.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07637/0.5614, allocations: 18.61 MB / 476.7 MB, free: 10.22 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5614, allocations: 3.938 kB / 476.7 MB, free: 10.22 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000108/0.5616, allocations: 35.98 kB / 476.8 MB, free: 10.18 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.003374/0.5649, allocations: 1.224 MB / 478 MB, free: 8.906 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.565, allocations: 12.03 kB / 478 MB, free: 8.895 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004396/0.5655, allocations: 177.7 kB / 478.2 MB, free: 8.711 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003128/0.5658, allocations: 146.3 kB / 478.3 MB, free: 8.566 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001684/0.5675, allocations: 0.6292 MB / 479 MB, free: 7.895 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.5676, allocations: 94.41 kB / 479.1 MB, free: 7.801 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002592/0.5679, allocations: 123.8 kB / 479.2 MB, free: 7.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003397/0.5713, allocations: 1.248 MB / 480.4 MB, free: 6.262 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.94e-05/0.5714, allocations: 11.92 kB / 480.4 MB, free: 6.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001582/0.5716, allocations: 52 kB / 480.5 MB, free: 6.199 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.948e-05/0.5717, allocations: 32 kB / 480.5 MB, free: 6.168 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002546/0.5742, allocations: 0.6929 MB / 481.2 MB, free: 5.473 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009954/0.5842, allocations: 6.844 MB / 488.1 MB, free: 14.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.5853, allocations: 273.2 kB / 488.3 MB, free: 14.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001869/0.5856, allocations: 85.19 kB / 488.4 MB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.755e-05/0.5856, allocations: 42.5 kB / 488.4 MB, free: 13.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 2.965e-06/0.5856, allocations: 0 / 488.4 MB, free: 13.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.003948/0.5896, allocations: 1.424 MB / 489.9 MB, free: 12.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.756e-05/0.5897, allocations: 81.11 kB / 490 MB, free: 12.22 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001086/0.5908, allocations: 0.5624 MB / 490.5 MB, free: 11.65 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.377e-05/0.5909, allocations: 33.7 kB / 490.5 MB, free: 11.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005836/0.5915, allocations: 0.694 MB / 491.2 MB, free: 10.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002392/0.5917, allocations: 118.4 kB / 491.4 MB, free: 10.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.692e-05/0.5918, allocations: 16 kB / 491.4 MB, free: 10.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.5919, allocations: 346.8 kB / 491.7 MB, free: 10.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004999/0.5925, allocations: 145.9 kB / 491.9 MB, free: 10.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008138/0.5933, allocations: 0.5507 MB / 492.4 MB, free: 9.535 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.001068/0.5944, allocations: 434.9 kB / 492.8 MB, free: 9.074 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-05/0.5944, allocations: 8 kB / 492.8 MB, free: 9.066 MB / 378.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002042/0.5965, allocations: 0.7608 MB / 493.6 MB, free: 8.297 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.224e-05/0.5965, allocations: 12.03 kB / 493.6 MB, free: 8.285 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.118e-05/0.5966, allocations: 16 kB / 493.6 MB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000368/0.597, allocations: 81.62 kB / 493.7 MB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/0.5981, allocations: 187.7 kB / 493.9 MB, free: 8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003627/0.6017, allocations: 2.99 MB / 496.9 MB, free: 4.742 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007378/0.6025, allocations: 32 kB / 496.9 MB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.486e-05/0.6026, allocations: 40 kB / 496.9 MB, free: 4.672 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.0007204/0.6033, allocations: 273.5 kB / 497.2 MB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.6035, allocations: 79.02 kB / 497.3 MB, free: 4.316 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001746/0.6037, allocations: 74.41 kB / 497.4 MB, free: 4.238 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.6037, allocations: 4 kB / 497.4 MB, free: 4.234 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/0.6037, allocations: 4.125 kB / 497.4 MB, free: 4.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.6037, allocations: 3.938 kB / 497.4 MB, free: 4.227 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003038/0.6068, allocations: 1.239 MB / 498.6 MB, free: 2.918 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.6069, allocations: 0 / 498.6 MB, free: 2.918 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006382/0.6075, allocations: 71.97 kB / 498.7 MB, free: 2.848 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002616/0.6078, allocations: 57.62 kB / 498.7 MB, free: 2.785 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.578e-05/0.6078, allocations: 11.98 kB / 498.8 MB, free: 2.773 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2813/0.8892, allocations: 2.764 MB / 0.4898 GB, free: 100.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.8892, allocations: 4.078 kB / 0.4898 GB, free: 100.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001767/0.891, allocations: 0.679 MB / 0.4904 GB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002453/0.8913, allocations: 137.6 kB / 0.4906 GB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.819e-05/0.8914, allocations: 12.44 kB / 0.4906 GB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004491/0.8919, allocations: 18.56 kB / 0.4906 GB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.892, allocations: 27.88 kB / 0.4906 GB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-05/0.8921, allocations: 8.922 kB / 0.4906 GB, free: 100.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00094/0.893, allocations: 431.5 kB / 0.491 GB, free: 100.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.893, allocations: 0 / 0.491 GB, free: 100.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001468/0.8945, allocations: 156.8 kB / 0.4912 GB, free: 100.3 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.001829/0.8964, allocations: 1.444 MB / 0.4926 GB, free: 99.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.8981, allocations: 0.6549 MB / 0.4932 GB, free: 99.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.8981, allocations: 1.188 kB / 0.4932 GB, free: 99.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007366/0.8989, allocations: 370.2 kB / 0.4936 GB, free: 98.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006656/0.8996, allocations: 74.27 kB / 0.4937 GB, free: 98.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01273/0.9123, allocations: 14.66 MB / 0.508 GB, free: 86.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000796/0.9132, allocations: 1.054 MB / 0.509 GB, free: 86.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007282/0.9139, allocations: 430 kB / 0.5094 GB, free: 86.14 MB / 378.7 MB Notification: Performance of SimCode: time 1.262e-06/0.9139, allocations: 0 / 0.5094 GB, free: 86.14 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.863/3.777, allocations: 23.11 MB / 0.532 GB, free: 75.91 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat