Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.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.Differentiator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001601/0.001605, allocations: 187.6 kB / 16.41 MB, free: 5.723 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.995/1.995, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001172/0.001172, allocations: 93.97 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003994/0.0003994, allocations: 12 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3304, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1296/0.46, allocations: 79.25 MB / 453.9 MB, free: 1.391 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003252/0.4604, allocations: 79.95 kB / 454 MB, free: 1.312 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02693/0.4874, allocations: 5.489 MB / 459.5 MB, free: 11.8 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.717e-06/0.4874, allocations: 4 kB / 459.5 MB, free: 11.79 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.27e-05/0.4875, allocations: 11.94 kB / 459.5 MB, free: 11.78 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.001607/0.4891, allocations: 0.5833 MB / 460.1 MB, free: 11.14 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.4892, allocations: 8.031 kB / 460.1 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.471e-05/0.4893, allocations: 54.55 kB / 460.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.231e-05/0.4894, allocations: 27.7 kB / 460.1 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004633/0.4898, allocations: 267.6 kB / 460.4 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.4899, allocations: 16.38 kB / 460.4 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.293e-05/0.49, allocations: 20 kB / 460.4 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009948/0.491, allocations: 244.5 kB / 460.7 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.491, allocations: 8 kB / 460.7 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.848e-05/0.4911, allocations: 4 kB / 460.7 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.4911, allocations: 7.938 kB / 460.7 MB, free: 10.44 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/0.4925, allocations: 275.2 kB / 461 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002485/0.495, allocations: 0.8912 MB / 461.9 MB, free: 9.211 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.4965, allocations: 266.6 kB / 462.1 MB, free: 8.941 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.001e-05/0.4966, allocations: 7.938 kB / 462.1 MB, free: 8.934 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007465/0.4974, allocations: 179.9 kB / 462.3 MB, free: 8.742 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 3.226e-06/0.4974, allocations: 0 / 462.3 MB, free: 8.742 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.001765/0.4991, allocations: 341.2 kB / 462.6 MB, free: 8.402 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.992e-05/0.4992, allocations: 85.05 kB / 462.7 MB, free: 8.301 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003577/0.4996, allocations: 216 kB / 462.9 MB, free: 8.086 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.833e-05/0.4997, allocations: 25.7 kB / 463 MB, free: 8.055 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.4998, allocations: 222.4 kB / 463.2 MB, free: 7.836 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.46e-05/0.4999, allocations: 39.45 kB / 463.2 MB, free: 7.797 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.244e-05/0.5, allocations: 4 kB / 463.2 MB, free: 7.793 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.5001, allocations: 326.8 kB / 463.5 MB, free: 7.465 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00057/0.5007, allocations: 100.1 kB / 463.6 MB, free: 7.363 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006084/0.5013, allocations: 161.6 kB / 463.8 MB, free: 7.184 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005952/0.5019, allocations: 133.7 kB / 463.9 MB, free: 7.047 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.5019, allocations: 0 / 463.9 MB, free: 7.047 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001377/0.5033, allocations: 335 kB / 464.3 MB, free: 6.707 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003322/0.5037, allocations: 0.6462 MB / 464.9 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.5037, allocations: 4 kB / 464.9 MB, free: 6.004 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.5038, allocations: 0 / 464.9 MB, free: 6.004 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005382/0.5043, allocations: 67.89 kB / 465 MB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.5043, allocations: 7.984 kB / 465 MB, free: 5.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005187/0.5049, allocations: 51.95 kB / 465 MB, free: 5.879 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.149e-05/0.5049, allocations: 12 kB / 465 MB, free: 5.867 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.5049, allocations: 4 kB / 465 MB, free: 5.863 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00115/0.5061, allocations: 274.4 kB / 465.3 MB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.5061, allocations: 0 / 465.3 MB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.5061, allocations: 4 kB / 465.3 MB, free: 5.586 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000424/0.5066, allocations: 55.95 kB / 465.4 MB, free: 5.531 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.5066, allocations: 8 kB / 465.4 MB, free: 5.523 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003779/0.507, allocations: 43.81 kB / 465.4 MB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.531e-05/0.507, allocations: 11.89 kB / 465.4 MB, free: 5.469 MB / 346.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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 0.0002704/0.5073, allocations: 211.9 kB / 465.6 MB, free: 5.254 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.467e-05/0.5074, allocations: 27.72 kB / 465.7 MB, free: 5.227 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.905e-05/0.5075, allocations: 25.83 kB / 465.7 MB, free: 5.203 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.5075, allocations: 0 / 465.7 MB, free: 5.203 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.5075, allocations: 0 / 465.7 MB, free: 5.203 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.5075, allocations: 0 / 465.7 MB, free: 5.203 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004793/0.508, allocations: 285.5 kB / 466 MB, free: 4.875 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.508, allocations: 3.984 kB / 466 MB, free: 4.871 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004635/0.5085, allocations: 51.91 kB / 466 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.084e-06/0.5085, allocations: 0 / 466 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.359e-05/0.5086, allocations: 7.984 kB / 466 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.5086, allocations: 0 / 466 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5086, allocations: 0 / 466 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001833/0.5104, allocations: 388.6 kB / 466.4 MB, free: 4.414 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/0.5106, allocations: 96.89 kB / 466.5 MB, free: 4.301 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.555e-05/0.5107, allocations: 8.062 kB / 466.5 MB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004178/0.5111, allocations: 39.89 kB / 466.6 MB, free: 4.254 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.5113, allocations: 23.97 kB / 466.6 MB, free: 4.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.5113, allocations: 4 kB / 466.6 MB, free: 4.227 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002678/0.5116, allocations: 176.4 kB / 466.8 MB, free: 4.051 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5116, allocations: 4 kB / 466.8 MB, free: 4.047 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006484/0.5122, allocations: 107.6 kB / 466.9 MB, free: 3.941 MB / 346.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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.002169/0.5144, allocations: 0.9235 MB / 467.8 MB, free: 2.988 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001921/0.5164, allocations: 482.9 kB / 468.3 MB, free: 2.492 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.5164, allocations: 0 / 468.3 MB, free: 2.492 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005763/0.517, allocations: 108.2 kB / 468.4 MB, free: 2.387 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004572/0.5175, allocations: 36.98 kB / 468.4 MB, free: 2.352 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005092/0.5226, allocations: 2.474 MB / 470.9 MB, free: 15.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003703/0.523, allocations: 0.7443 MB / 471.6 MB, free: 15.03 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002172/0.5233, allocations: 71.41 kB / 471.7 MB, free: 14.96 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/0.5233, allocations: 0 / 471.7 MB, free: 14.96 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.438/2.961, allocations: 3.905 MB / 475.6 MB, free: 11.07 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat does not exist to compare? outputFormat=mat