Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 179.9 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008713/0.0008712, allocations: 95.08 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002803/0.0002803, allocations: 8 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3249, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1108/0.4357, allocations: 81.53 MB / 483.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.436, allocations: 83.95 kB / 483.2 MB, free: 14.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01747/0.4535, allocations: 6.349 MB / 489.6 MB, free: 8.492 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.4535, allocations: 0 / 489.6 MB, free: 8.492 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.352e-05/0.4536, allocations: 12 kB / 489.6 MB, free: 8.48 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001124/0.4547, allocations: 0.6186 MB / 490.2 MB, free: 7.805 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.4548, allocations: 8.031 kB / 490.2 MB, free: 7.797 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.452e-05/0.4548, allocations: 58.55 kB / 490.2 MB, free: 7.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.391e-05/0.4549, allocations: 35.62 kB / 490.3 MB, free: 7.695 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003857/0.4553, allocations: 295.9 kB / 490.6 MB, free: 7.363 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/0.4553, allocations: 17.25 kB / 490.6 MB, free: 7.348 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.805e-05/0.4554, allocations: 20 kB / 490.6 MB, free: 7.328 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006922/0.4561, allocations: 327.6 kB / 490.9 MB, free: 7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.4561, allocations: 0 / 490.9 MB, free: 7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.962e-05/0.4562, allocations: 12 kB / 490.9 MB, free: 6.988 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.4562, allocations: 8 kB / 490.9 MB, free: 6.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007769/0.457, allocations: 306 kB / 491.2 MB, free: 6.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00207/0.459, allocations: 1.212 MB / 492.5 MB, free: 5.387 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008715/0.4599, allocations: 274.6 kB / 492.7 MB, free: 5.109 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.46, allocations: 4 kB / 492.7 MB, free: 5.105 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005068/0.4605, allocations: 191.7 kB / 492.9 MB, free: 4.902 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.323e-06/0.4605, allocations: 0 / 492.9 MB, free: 4.902 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.002015/0.4625, allocations: 0.6555 MB / 493.6 MB, free: 4.219 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.4626, allocations: 85.11 kB / 493.7 MB, free: 4.117 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002611/0.4628, allocations: 245.6 kB / 493.9 MB, free: 3.867 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.039e-05/0.4629, allocations: 29.7 kB / 493.9 MB, free: 3.832 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.463, allocations: 187.6 kB / 494.1 MB, free: 3.645 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.164e-05/0.463, allocations: 43.44 kB / 494.2 MB, free: 3.602 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.208e-05/0.4631, allocations: 8 kB / 494.2 MB, free: 3.594 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.4632, allocations: 334.8 kB / 494.5 MB, free: 3.258 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003346/0.4635, allocations: 120.2 kB / 494.6 MB, free: 3.137 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000373/0.4639, allocations: 205.1 kB / 494.8 MB, free: 2.898 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003535/0.4643, allocations: 161.5 kB / 495 MB, free: 2.734 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.4643, allocations: 4 kB / 495 MB, free: 2.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001129/0.4654, allocations: 479.8 kB / 495.4 MB, free: 2.246 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.903e-05/0.4655, allocations: 29.7 kB / 495.5 MB, free: 2.211 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.4655, allocations: 4 kB / 495.5 MB, free: 2.207 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003081/0.4658, allocations: 72.88 kB / 495.5 MB, free: 2.133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002765/0.4661, allocations: 67.83 kB / 495.6 MB, free: 2.066 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002111/0.4682, allocations: 1.573 MB / 497.2 MB, free: 372 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003318/0.4686, allocations: 67.7 kB / 497.2 MB, free: 304 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.467e-05/0.4686, allocations: 11.98 kB / 497.3 MB, free: 292 kB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 23 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001666/0.4688, allocations: 145.8 kB / 497.4 MB, free: 136 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.292e-05/0.4688, allocations: 19.72 kB / 497.4 MB, free: 116 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.806e-05/0.4689, allocations: 25.7 kB / 497.4 MB, free: 88 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.4689, allocations: 0 / 497.4 MB, free: 88 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.4689, allocations: 0 / 497.4 MB, free: 88 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.4689, allocations: 4 kB / 497.4 MB, free: 84 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003169/0.4692, allocations: 313.4 kB / 497.8 MB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.4692, allocations: 4 kB / 497.8 MB, free: 15.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002005/0.4694, allocations: 39.91 kB / 497.8 MB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002115/0.4697, allocations: 64.81 kB / 497.9 MB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.966e-05/0.4697, allocations: 8 kB / 497.9 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001923/0.4716, allocations: 1.561 MB / 499.4 MB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4716, allocations: 0 / 499.4 MB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001329/0.473, allocations: 0.4897 MB / 499.9 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.703e-05/0.4731, allocations: 97 kB / 0.4883 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.654e-05/0.4731, allocations: 12 kB / 0.4883 GB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.4733, allocations: 31.97 kB / 0.4883 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.457e-05/0.4734, allocations: 31.84 kB / 0.4884 GB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.4735, allocations: 3.984 kB / 0.4884 GB, free: 13.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002144/0.4737, allocations: 194 kB / 0.4886 GB, free: 13.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4737, allocations: 0 / 0.4886 GB, free: 13.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004079/0.4741, allocations: 71.75 kB / 0.4886 GB, free: 12.95 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.c.v) * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001725/0.4758, allocations: 1.039 MB / 0.4896 GB, free: 11.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009455/0.4768, allocations: 441 kB / 0.4901 GB, free: 11.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4768, allocations: 0.5625 kB / 0.4901 GB, free: 11.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004157/0.4772, allocations: 234.5 kB / 0.4903 GB, free: 11.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.4775, allocations: 55.34 kB / 0.4903 GB, free: 11.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006235/0.4838, allocations: 3.839 MB / 0.4941 GB, free: 7.199 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.4841, allocations: 0.7596 MB / 0.4948 GB, free: 6.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000124/0.4842, allocations: 22.3 kB / 0.4948 GB, free: 6.387 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.4844, allocations: 79.41 kB / 0.4949 GB, free: 6.309 MB / 378.7 MB Notification: Performance of SimCode: time 2.454e-06/0.4844, allocations: 0 / 0.4949 GB, free: 6.309 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01841/0.5028, allocations: 5.567 MB / 0.5004 GB, free: 0.9531 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001923/0.503, allocations: 209.4 kB / 0.5006 GB, free: 0.7148 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.829/2.332, allocations: 0 / 0.5006 GB, free: 0.7148 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Integrator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Integrator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat does not exist to compare? outputFormat=mat