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.001135/0.001135, allocations: 181.5 kB / 17.01 MB, free: 5.125 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.445/1.445, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0008753/0.0008755, allocations: 96.86 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002637/0.0002636, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.254, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0999/0.354, allocations: 83.43 MB / 459.3 MB, free: 13.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.3543, allocations: 75.95 kB / 459.4 MB, free: 13.13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04282/0.3971, allocations: 18.61 MB / 478 MB, free: 10.22 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3972, allocations: 0 / 478 MB, free: 10.22 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.567e-05/0.3972, allocations: 31.94 kB / 478.1 MB, free: 10.19 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.001996/0.3992, allocations: 1.232 MB / 479.3 MB, free: 8.902 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.3993, allocations: 8.031 kB / 479.3 MB, free: 8.895 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002025/0.3995, allocations: 177.7 kB / 479.5 MB, free: 8.711 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001815/0.3997, allocations: 142.3 kB / 479.6 MB, free: 8.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009682/0.4007, allocations: 0.6292 MB / 480.2 MB, free: 7.898 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.816e-05/0.4008, allocations: 94.41 kB / 480.3 MB, free: 7.805 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.4009, allocations: 127.8 kB / 480.5 MB, free: 7.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001899/0.4028, allocations: 1.252 MB / 481.7 MB, free: 6.258 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.207e-05/0.4029, allocations: 7.938 kB / 481.7 MB, free: 6.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.366e-05/0.4029, allocations: 48 kB / 481.8 MB, free: 6.203 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.151e-05/0.403, allocations: 36 kB / 481.8 MB, free: 6.168 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001251/0.4042, allocations: 0.6929 MB / 482.5 MB, free: 5.473 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006103/0.4104, allocations: 6.848 MB / 489.3 MB, free: 14.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006569/0.4111, allocations: 269.3 kB / 489.6 MB, free: 14.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001831/0.4112, allocations: 85.11 kB / 489.7 MB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.22e-05/0.4113, allocations: 38.55 kB / 489.7 MB, free: 13.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 2.875e-06/0.4113, allocations: 3.938 kB / 489.7 MB, free: 13.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.002445/0.4137, allocations: 1.412 MB / 491.1 MB, free: 12.33 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.4138, allocations: 81.11 kB / 491.2 MB, free: 12.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007142/0.4145, allocations: 0.5663 MB / 491.8 MB, free: 11.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.736e-05/0.4146, allocations: 29.7 kB / 491.8 MB, free: 11.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004501/0.415, allocations: 0.6798 MB / 492.5 MB, free: 10.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.158e-05/0.4151, allocations: 118.4 kB / 492.6 MB, free: 10.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.626e-05/0.4152, allocations: 16 kB / 492.6 MB, free: 10.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.4154, allocations: 386.8 kB / 493 MB, free: 10.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000282/0.4157, allocations: 149.9 kB / 493.1 MB, free: 10.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005271/0.4162, allocations: 0.5506 MB / 493.7 MB, free: 9.516 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.0006279/0.4168, allocations: 434 kB / 494.1 MB, free: 9.055 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.4168, allocations: 4 kB / 494.1 MB, free: 9.051 MB / 378.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001238/0.4181, allocations: 0.7925 MB / 494.9 MB, free: 8.246 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.106e-05/0.4181, allocations: 16.06 kB / 494.9 MB, free: 8.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-05/0.4182, allocations: 16 kB / 494.9 MB, free: 8.215 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002411/0.4184, allocations: 89.62 kB / 495 MB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005515/0.419, allocations: 183.7 kB / 495.2 MB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002616/0.4216, allocations: 2.986 MB / 498.2 MB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006359/0.4223, allocations: 32 kB / 498.2 MB, free: 4.656 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.76e-05/0.4223, allocations: 44.12 kB / 498.3 MB, free: 4.613 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.0005775/0.4229, allocations: 284.1 kB / 498.6 MB, free: 4.328 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.423, allocations: 75.02 kB / 498.6 MB, free: 4.254 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.4232, allocations: 74.41 kB / 498.7 MB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.4232, allocations: 4 kB / 498.7 MB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.4232, allocations: 0 / 498.7 MB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.4232, allocations: 3.938 kB / 498.7 MB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001891/0.4251, allocations: 1.235 MB / 499.9 MB, free: 2.863 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.4251, allocations: 4 kB / 499.9 MB, free: 2.859 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003543/0.4255, allocations: 71.97 kB / 0.4883 GB, free: 2.789 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001837/0.4257, allocations: 61.61 kB / 0.4884 GB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.593e-05/0.4257, allocations: 7.984 kB / 0.4884 GB, free: 2.715 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2263/0.652, allocations: 2.773 MB / 0.4911 GB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.652, allocations: 1.781 kB / 0.4911 GB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/0.6533, allocations: 0.6802 MB / 0.4917 GB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001747/0.6535, allocations: 136.6 kB / 0.4919 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.984e-05/0.6535, allocations: 8.688 kB / 0.4919 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003062/0.6538, allocations: 20.91 kB / 0.4919 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.6539, allocations: 30.72 kB / 0.4919 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.943e-05/0.654, allocations: 11.62 kB / 0.4919 GB, free: 100.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007374/0.6547, allocations: 431.3 kB / 0.4923 GB, free: 100.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6547, allocations: 0 / 0.4923 GB, free: 100.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001181/0.6559, allocations: 155.3 kB / 0.4925 GB, free: 100.2 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.001213/0.6571, allocations: 1.443 MB / 0.4939 GB, free: 99.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001221/0.6584, allocations: 0.6561 MB / 0.4945 GB, free: 98.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.6584, allocations: 0 / 0.4945 GB, free: 98.99 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004465/0.6589, allocations: 376.5 kB / 0.4949 GB, free: 98.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004227/0.6593, allocations: 69.33 kB / 0.495 GB, free: 98.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009612/0.6689, allocations: 14.61 MB / 0.5092 GB, free: 86.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007685/0.6698, allocations: 1.056 MB / 0.5103 GB, free: 86.05 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004426/0.6702, allocations: 88.27 kB / 0.5104 GB, free: 86.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004658/0.6707, allocations: 422.3 kB / 0.5108 GB, free: 86.03 MB / 378.7 MB Notification: Performance of SimCode: time 1.433e-06/0.6707, allocations: 0 / 0.5108 GB, free: 86.03 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02903/0.6997, allocations: 12.45 MB / 0.5229 GB, free: 84.79 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000178/0.7, allocations: 208.6 kB / 0.5231 GB, free: 84.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.383/3.083, allocations: 0 / 0.5231 GB, free: 84.54 MB / 378.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