Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.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.Differentiator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",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.0009828/0.0009829, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.303/1.303, allocations: 221.3 MB / 235.5 MB, free: 2.957 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.001012/0.001012, allocations: 87.62 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.029e-05/3.033e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1189, allocations: 50.42 MB / 394.4 MB, free: 1.738 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4107/0.5296, allocations: 81.45 MB / 475.8 MB, free: 5.996 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002353/0.5299, allocations: 79.95 kB / 475.9 MB, free: 5.918 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01759/0.5475, allocations: 6.301 MB / 482.2 MB, free: 15.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.5475, allocations: 0 / 482.2 MB, free: 15.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.5476, allocations: 8 kB / 482.2 MB, free: 15.59 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.0009492/0.5485, allocations: 0.5884 MB / 482.8 MB, free: 14.95 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.5486, allocations: 8.031 kB / 482.8 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.969e-05/0.5487, allocations: 58.55 kB / 482.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.993e-05/0.5487, allocations: 31.62 kB / 482.9 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003684/0.5491, allocations: 291.9 kB / 483.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/0.5491, allocations: 17.25 kB / 483.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.669e-05/0.5492, allocations: 24 kB / 483.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004493/0.5497, allocations: 267.7 kB / 483.5 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.5497, allocations: 3.938 kB / 483.5 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.767e-05/0.5497, allocations: 8 kB / 483.5 MB, free: 14.19 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.5497, allocations: 8 kB / 483.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003303/0.5501, allocations: 182.2 kB / 483.7 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001846/0.5519, allocations: 1.139 MB / 484.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000354/0.5523, allocations: 158.6 kB / 485 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.5524, allocations: 60.86 kB / 485 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.5524, allocations: 3.984 kB / 485 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002154/0.5527, allocations: 121.1 kB / 485.1 MB, free: 12.42 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.5527, allocations: 4 kB / 485.1 MB, free: 12.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002996/0.553, allocations: 145.5 kB / 485.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.097e-05/0.5531, allocations: 81.11 kB / 485.4 MB, free: 12.17 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002411/0.5533, allocations: 234.9 kB / 485.6 MB, free: 11.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.5533, allocations: 33.7 kB / 485.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.5535, allocations: 191.5 kB / 485.8 MB, free: 11.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.556e-05/0.5535, allocations: 39.45 kB / 485.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.472e-05/0.5535, allocations: 8 kB / 485.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.5537, allocations: 326.8 kB / 486.2 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001077/0.5538, allocations: 60.23 kB / 486.2 MB, free: 11.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.5539, allocations: 139.6 kB / 486.4 MB, free: 11.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001489/0.5541, allocations: 105.6 kB / 486.5 MB, free: 10.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.5541, allocations: 0 / 486.5 MB, free: 10.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004087/0.5545, allocations: 271.5 kB / 486.7 MB, free: 10.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.492e-05/0.5546, allocations: 33.7 kB / 486.8 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.5546, allocations: 4 kB / 486.8 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.5546, allocations: 4 kB / 486.8 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003059/0.5549, allocations: 76.23 kB / 486.9 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.5549, allocations: 7.984 kB / 486.9 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003001/0.5553, allocations: 55.72 kB / 486.9 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.298e-05/0.5553, allocations: 12 kB / 486.9 MB, free: 10.51 MB / 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.945e-05/0.5554, allocations: 132 kB / 487.1 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.311e-05/0.5554, allocations: 19.72 kB / 487.1 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.184e-05/0.5555, allocations: 25.83 kB / 487.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.5555, allocations: 3.938 kB / 487.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.5555, allocations: 0 / 487.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.5555, allocations: 0 / 487.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000293/0.5558, allocations: 317.5 kB / 487.4 MB, free: 9.969 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.5558, allocations: 3.953 kB / 487.4 MB, free: 9.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002527/0.5561, allocations: 63.83 kB / 487.5 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.5561, allocations: 0 / 487.5 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.5561, allocations: 0 / 487.5 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.5561, allocations: 0 / 487.5 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.5561, allocations: 0 / 487.5 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003781/0.5565, allocations: 233.6 kB / 487.7 MB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.884e-05/0.5566, allocations: 108.8 kB / 487.8 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.53e-05/0.5566, allocations: 0 / 487.8 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002462/0.5569, allocations: 39.95 kB / 487.9 MB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.691e-05/0.557, allocations: 16.05 kB / 487.9 MB, free: 9.477 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.557, allocations: 15.92 kB / 487.9 MB, free: 9.461 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001705/0.5572, allocations: 187.1 kB / 488.1 MB, free: 9.281 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5572, allocations: 0 / 488.1 MB, free: 9.281 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002726/0.5574, allocations: 71.78 kB / 488.1 MB, free: 9.211 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (der_.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 (12): * Single equations (assignments): 10 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006395/0.5581, allocations: 0.7702 MB / 488.9 MB, free: 8.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003051/0.5584, allocations: 211.1 kB / 489.1 MB, free: 8.191 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.5584, allocations: 0 / 489.1 MB, free: 8.191 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.5586, allocations: 56 kB / 489.2 MB, free: 8.137 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/0.5588, allocations: 37.23 kB / 489.2 MB, free: 8.102 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008864/0.5597, allocations: 405.1 kB / 489.6 MB, free: 7.672 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.56, allocations: 0.756 MB / 490.4 MB, free: 6.891 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001219/0.5602, allocations: 34.05 kB / 490.4 MB, free: 6.855 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.5603, allocations: 79.41 kB / 490.5 MB, free: 6.777 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.5603, allocations: 3.938 kB / 490.5 MB, free: 6.773 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01665/0.577, allocations: 4.842 MB / 495.3 MB, free: 2.07 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001542/0.5772, allocations: 165 kB / 495.5 MB, free: 1.844 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.646/2.223, allocations: 0 / 495.5 MB, free: 1.844 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat does not exist to compare? outputFormat=mat