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.001112/0.001112, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008782/0.0008781, allocations: 96.91 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.848e-05/1.849e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08983/0.08987, allocations: 50.43 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.312/0.4019, allocations: 80.79 MB / 468.4 MB, free: 13.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/0.4022, allocations: 87.94 kB / 468.5 MB, free: 13.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0173/0.4195, allocations: 6.277 MB / 474.7 MB, free: 7.539 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.4195, allocations: 0 / 474.7 MB, free: 7.539 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.838e-05/0.4196, allocations: 8 kB / 474.7 MB, free: 7.531 MB / 346.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.0009811/0.4206, allocations: 0.5796 MB / 475.3 MB, free: 6.895 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.4206, allocations: 8.031 kB / 475.3 MB, free: 6.887 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.914e-05/0.4207, allocations: 31.62 kB / 475.4 MB, free: 6.855 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003799/0.4211, allocations: 292 kB / 475.6 MB, free: 6.527 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.4211, allocations: 8.688 kB / 475.7 MB, free: 6.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.08e-05/0.4212, allocations: 12 kB / 475.7 MB, free: 6.508 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003177/0.4215, allocations: 165.1 kB / 475.8 MB, free: 6.348 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003969/0.4219, allocations: 230.6 kB / 476.1 MB, free: 6.109 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.4219, allocations: 4 kB / 476.1 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.568e-05/0.4219, allocations: 3.984 kB / 476.1 MB, free: 6.102 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.4219, allocations: 4 kB / 476.1 MB, free: 6.098 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001932/0.4239, allocations: 1.153 MB / 477.2 MB, free: 4.871 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003239/0.4242, allocations: 142.6 kB / 477.4 MB, free: 4.723 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.449e-05/0.4243, allocations: 61.78 kB / 477.4 MB, free: 4.66 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.4244, allocations: 0 / 477.4 MB, free: 4.66 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002069/0.4246, allocations: 117.1 kB / 477.5 MB, free: 4.527 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.372e-06/0.4246, allocations: 3.938 kB / 477.5 MB, free: 4.523 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005798/0.4252, allocations: 202.2 kB / 477.7 MB, free: 4.316 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.325e-05/0.4253, allocations: 77.33 kB / 477.8 MB, free: 4.223 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002385/0.4255, allocations: 224.5 kB / 478 MB, free: 3.992 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.4255, allocations: 29.7 kB / 478.1 MB, free: 3.957 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.4257, allocations: 195.7 kB / 478.2 MB, free: 3.762 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.621e-05/0.4257, allocations: 43.45 kB / 478.3 MB, free: 3.719 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.133e-05/0.4257, allocations: 3.938 kB / 478.3 MB, free: 3.715 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.4259, allocations: 326.8 kB / 478.6 MB, free: 3.387 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.436e-05/0.426, allocations: 52.23 kB / 478.7 MB, free: 3.332 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.4261, allocations: 147.6 kB / 478.8 MB, free: 3.148 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001165/0.4262, allocations: 65.14 kB / 478.9 MB, free: 3.086 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.4262, allocations: 0 / 478.9 MB, free: 3.086 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006228/0.4269, allocations: 294.2 kB / 479.2 MB, free: 2.789 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.375e-05/0.4269, allocations: 33.7 kB / 479.2 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.4269, allocations: 0 / 479.2 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000158/0.4271, allocations: 44.89 kB / 479.2 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002425/0.4273, allocations: 59.91 kB / 479.3 MB, free: 2.645 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/0.4286, allocations: 1.33 MB / 480.6 MB, free: 1.203 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002908/0.4289, allocations: 51.66 kB / 480.7 MB, free: 1.152 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.606e-05/0.4289, allocations: 11.98 kB / 480.7 MB, free: 1.141 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: integrator.opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real 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 () * 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.0001417/0.4291, allocations: 119.1 kB / 480.8 MB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004832/0.4296, allocations: 207.8 kB / 481 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.03e-05/0.4296, allocations: 19.81 kB / 481 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.008e-05/0.4297, allocations: 25.83 kB / 481 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.748e-06/0.4297, allocations: 4 kB / 481.1 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.4297, allocations: 3.953 kB / 481.1 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.4297, allocations: 0 / 481.1 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002442/0.4299, allocations: 270 kB / 481.3 MB, free: 468 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.4299, allocations: 0 / 481.3 MB, free: 468 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001975/0.4301, allocations: 35.97 kB / 481.4 MB, free: 432 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.255e-05/0.4302, allocations: 40.78 kB / 481.4 MB, free: 388 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.4303, allocations: 0 / 481.4 MB, free: 388 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001082/0.4313, allocations: 1.326 MB / 482.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.4314, allocations: 0 / 482.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005842/0.4319, allocations: 301.7 kB / 483 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.993e-05/0.432, allocations: 100.9 kB / 483.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.371e-05/0.4321, allocations: 3.984 kB / 483.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002394/0.4323, allocations: 31.97 kB / 483.2 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.648e-05/0.4324, allocations: 23.92 kB / 483.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.4324, allocations: 8 kB / 483.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001441/0.4326, allocations: 168.5 kB / 483.3 MB, free: 14.28 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4326, allocations: 0 / 483.3 MB, free: 14.28 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003153/0.4329, allocations: 67.84 kB / 483.4 MB, free: 14.21 MB / 362.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) * 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.0009039/0.4338, allocations: 0.8405 MB / 484.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004179/0.4342, allocations: 305.8 kB / 484.6 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4342, allocations: 0 / 484.6 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.4344, allocations: 169.8 kB / 484.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.4347, allocations: 36.36 kB / 484.8 MB, free: 12.81 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.4364, allocations: 0.5584 MB / 485.3 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.4367, allocations: 0.7599 MB / 486.1 MB, free: 11.42 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001104/0.4368, allocations: 30.05 kB / 486.1 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.4369, allocations: 75.42 kB / 486.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4369, allocations: 0 / 486.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02359/0.4605, allocations: 4.763 MB / 490.9 MB, free: 6.602 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000177/0.4607, allocations: 146.8 kB / 491.1 MB, free: 6.406 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.775/2.236, allocations: 0 / 491.1 MB, free: 6.406 MB / 362.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