Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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.OpAmps.Integrator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",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.001405/0.001405, allocations: 175.7 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.542/1.542, allocations: 205.3 MB / 214.4 MB, free: 1.68 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009135/0.0009135, allocations: 86.7 kB / 262.4 MB, free: 1.621 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.036e-05/2.039e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1054, allocations: 47.6 MB / 363.2 MB, free: 6.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3353/0.4407, allocations: 78.74 MB / 441.9 MB, free: 0.668 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002106/0.4409, allocations: 78.7 kB / 442 MB, free: 0.625 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01576/0.4567, allocations: 5.429 MB / 447.4 MB, free: 12.04 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4568, allocations: 0 / 447.4 MB, free: 12.04 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.522e-05/0.4568, allocations: 7.984 kB / 447.4 MB, free: 12.03 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0009338/0.4577, allocations: 0.5588 MB / 448 MB, free: 11.44 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.4578, allocations: 12.03 kB / 448 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.755e-05/0.4578, allocations: 23.72 kB / 448 MB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003153/0.4582, allocations: 270 kB / 448.3 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.4582, allocations: 11.2 kB / 448.3 MB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.905e-05/0.4582, allocations: 12 kB / 448.3 MB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002677/0.4585, allocations: 144.2 kB / 448.5 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002642/0.4588, allocations: 157.7 kB / 448.6 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.4588, allocations: 0 / 448.6 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.066e-05/0.4588, allocations: 4 kB / 448.6 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.4588, allocations: 4 kB / 448.6 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.4602, allocations: 0.846 MB / 449.5 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003439/0.4606, allocations: 144.8 kB / 449.6 MB, free: 10.01 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.49e-05/0.4607, allocations: 56.17 kB / 449.7 MB, free: 9.969 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/0.4607, allocations: 3.984 kB / 449.7 MB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002262/0.4609, allocations: 117.4 kB / 449.8 MB, free: 9.852 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 1.272e-06/0.4609, allocations: 0 / 449.8 MB, free: 9.852 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004875/0.4614, allocations: 193.5 kB / 450 MB, free: 9.684 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.4615, allocations: 85.09 kB / 450.1 MB, free: 9.582 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002066/0.4617, allocations: 194.8 kB / 450.2 MB, free: 9.414 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.226e-05/0.4618, allocations: 29.7 kB / 450.3 MB, free: 9.379 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.666e-05/0.4619, allocations: 165.6 kB / 450.4 MB, free: 9.238 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.932e-05/0.4619, allocations: 38.89 kB / 450.5 MB, free: 9.207 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.152e-05/0.4619, allocations: 4 kB / 450.5 MB, free: 9.203 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.462, allocations: 335.3 kB / 450.8 MB, free: 8.875 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.18e-05/0.4621, allocations: 43.19 kB / 450.9 MB, free: 8.848 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001182/0.4623, allocations: 103 kB / 451 MB, free: 8.75 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.409e-05/0.4624, allocations: 49.89 kB / 451 MB, free: 8.715 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.4624, allocations: 0 / 451 MB, free: 8.715 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000478/0.4629, allocations: 249 kB / 451.2 MB, free: 8.508 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002684/0.4631, allocations: 0.6408 MB / 451.9 MB, free: 7.824 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.4632, allocations: 4 kB / 451.9 MB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001708/0.4633, allocations: 31.66 kB / 451.9 MB, free: 7.793 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002316/0.4636, allocations: 59.39 kB / 452 MB, free: 7.738 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003579/0.4639, allocations: 0.5466 MB / 452.5 MB, free: 7.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002679/0.4642, allocations: 47.91 kB / 452.6 MB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.4643, allocations: 7.312 kB / 452.6 MB, free: 7.129 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.683e-06/0.4643, allocations: 4 kB / 452.6 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000286/0.4646, allocations: 162.1 kB / 452.7 MB, free: 7.004 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.374e-06/0.4646, allocations: 0 / 452.7 MB, free: 7.004 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.717e-05/0.4646, allocations: 24.34 kB / 452.8 MB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002092/0.4649, allocations: 51.47 kB / 452.8 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009031/0.4658, allocations: 1.325 MB / 454.1 MB, free: 5.543 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000231/0.466, allocations: 39.91 kB / 454.2 MB, free: 5.504 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.466, allocations: 11.38 kB / 454.2 MB, free: 5.496 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.simplifiedExpr:VARIABLE(unit = "V" protected = true ) "Simplified expression for homotopy-based initialization" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001455/0.4662, allocations: 113 kB / 454.3 MB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003531/0.4665, allocations: 193.5 kB / 454.5 MB, free: 5.207 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.058e-05/0.4666, allocations: 23.12 kB / 454.5 MB, free: 5.188 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.052e-05/0.4666, allocations: 17.16 kB / 454.5 MB, free: 5.18 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.4667, allocations: 7.922 kB / 454.5 MB, free: 5.172 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.4667, allocations: 0 / 454.5 MB, free: 5.172 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.4667, allocations: 0 / 454.5 MB, free: 5.172 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002206/0.4669, allocations: 245.3 kB / 454.8 MB, free: 4.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.4669, allocations: 7.891 kB / 454.8 MB, free: 4.922 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001994/0.4671, allocations: 43.97 kB / 454.8 MB, free: 4.879 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.448e-05/0.4672, allocations: 32.59 kB / 454.9 MB, free: 4.852 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.4672, allocations: 0 / 454.9 MB, free: 4.852 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000955/0.4682, allocations: 1.306 MB / 456.2 MB, free: 3.488 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.4682, allocations: 0 / 456.2 MB, free: 3.488 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004618/0.4687, allocations: 274.4 kB / 456.4 MB, free: 3.262 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.408e-05/0.4687, allocations: 100.8 kB / 456.5 MB, free: 3.145 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.257e-05/0.4688, allocations: 7.938 kB / 456.5 MB, free: 3.137 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/0.469, allocations: 35.28 kB / 456.6 MB, free: 3.105 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.041e-05/0.4691, allocations: 19.53 kB / 456.6 MB, free: 3.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.4691, allocations: 4 kB / 456.6 MB, free: 3.086 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001395/0.4693, allocations: 156.4 kB / 456.7 MB, free: 2.961 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4693, allocations: 0 / 456.7 MB, free: 2.961 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004839/0.4697, allocations: 99.69 kB / 456.8 MB, free: 2.863 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (c.v) * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008298/0.4706, allocations: 0.8236 MB / 457.7 MB, free: 2.07 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006435/0.4712, allocations: 432 kB / 458.1 MB, free: 1.688 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4713, allocations: 0 / 458.1 MB, free: 1.688 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001913/0.4715, allocations: 168.7 kB / 458.3 MB, free: 1.535 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.4717, allocations: 39.27 kB / 458.3 MB, free: 1.504 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008091/0.4726, allocations: 376.3 kB / 458.7 MB, free: 1.125 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003216/0.4729, allocations: 0.7482 MB / 459.4 MB, free: 356 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001539/0.473, allocations: 30.06 kB / 459.4 MB, free: 324 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.703e-05/0.4731, allocations: 59.92 kB / 459.5 MB, free: 304 kB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4731, allocations: 0 / 459.5 MB, free: 304 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02385/0.497, allocations: 4.611 MB / 464.1 MB, free: 11.68 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001963/0.4973, allocations: 146.4 kB / 464.3 MB, free: 11.49 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.765/2.262, allocations: 4 kB / 464.3 MB, free: 11.48 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Integrator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Integrator.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat does not exist to compare? outputFormat=mat