Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009492/0.0009492, allocations: 177.3 kB / 8.697 MB, free: 388 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.611/1.611, allocations: 205.3 MB / 214.4 MB, free: 1.73 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.001008/0.001009, allocations: 90.22 kB / 262.4 MB, free: 1.672 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.835e-05/1.836e-05, allocations: 8 kB / 315.6 MB, free: 22.6 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09075/0.09078, allocations: 47.59 MB / 363.2 MB, free: 6.953 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3224/0.4132, allocations: 78.74 MB / 441.9 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/0.4135, allocations: 78.89 kB / 442 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01565/0.4292, allocations: 5.421 MB / 447.4 MB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.4292, allocations: 0 / 447.4 MB, free: 12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.662e-05/0.4293, allocations: 4 kB / 447.4 MB, free: 12 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.0009207/0.4302, allocations: 0.5624 MB / 448 MB, free: 11.4 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.4302, allocations: 12.03 kB / 448 MB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.795e-05/0.4303, allocations: 27.7 kB / 448 MB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003504/0.4307, allocations: 263 kB / 448.3 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.4307, allocations: 7.953 kB / 448.3 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.892e-05/0.4308, allocations: 12 kB / 448.3 MB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002928/0.4311, allocations: 146 kB / 448.4 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002956/0.4314, allocations: 157.1 kB / 448.6 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.4314, allocations: 0 / 448.6 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.598e-05/0.4314, allocations: 11.98 kB / 448.6 MB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.4314, allocations: 4 kB / 448.6 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001423/0.4329, allocations: 0.8401 MB / 449.5 MB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003517/0.4332, allocations: 154.7 kB / 449.6 MB, free: 9.961 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.92e-05/0.4333, allocations: 55.8 kB / 449.7 MB, free: 9.922 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.4334, allocations: 0 / 449.7 MB, free: 9.922 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000211/0.4336, allocations: 115.3 kB / 449.8 MB, free: 9.812 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 1.553e-06/0.4336, allocations: 4 kB / 449.8 MB, free: 9.809 MB / 330.7 MB Notification: Performance of matching and sorting (n=13): time 0.0002895/0.4339, allocations: 131.2 kB / 449.9 MB, free: 9.699 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.434, allocations: 80.55 kB / 450 MB, free: 9.605 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002055/0.4342, allocations: 200.4 kB / 450.2 MB, free: 9.43 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.4342, allocations: 25.7 kB / 450.2 MB, free: 9.398 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.4343, allocations: 164.1 kB / 450.4 MB, free: 9.262 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.6e-05/0.4344, allocations: 42.14 kB / 450.4 MB, free: 9.227 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.061e-05/0.4344, allocations: 3.938 kB / 450.4 MB, free: 9.223 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.4345, allocations: 329.9 kB / 450.7 MB, free: 8.898 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.163e-05/0.4346, allocations: 49 kB / 450.8 MB, free: 8.867 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000118/0.4347, allocations: 99.28 kB / 450.9 MB, free: 8.77 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.719e-05/0.4348, allocations: 50.39 kB / 450.9 MB, free: 8.738 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4348, allocations: 0 / 450.9 MB, free: 8.738 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003178/0.4351, allocations: 192.1 kB / 451.1 MB, free: 8.582 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002449/0.4354, allocations: 0.6458 MB / 451.8 MB, free: 7.895 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.4354, allocations: 0 / 451.8 MB, free: 7.895 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.4354, allocations: 4 kB / 451.8 MB, free: 7.891 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002649/0.4357, allocations: 66.95 kB / 451.8 MB, free: 7.828 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.4357, allocations: 0 / 451.8 MB, free: 7.828 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.436, allocations: 47.81 kB / 451.9 MB, free: 7.781 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/0.436, allocations: 7.562 kB / 451.9 MB, free: 7.777 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.042e-06/0.436, allocations: 4 kB / 451.9 MB, free: 7.773 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002376/0.4363, allocations: 143.5 kB / 452 MB, free: 7.672 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.4363, allocations: 4 kB / 452 MB, free: 7.668 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.28e-06/0.4363, allocations: 8.188 kB / 452 MB, free: 7.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002313/0.4365, allocations: 55.89 kB / 452.1 MB, free: 7.605 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-06/0.4365, allocations: 4 kB / 452.1 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002151/0.4368, allocations: 31.83 kB / 452.1 MB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.628e-05/0.4368, allocations: 14.92 kB / 452.1 MB, free: 7.559 MB / 330.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 () * 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 8.902e-05/0.4369, allocations: 112.9 kB / 452.3 MB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002662/0.4371, allocations: 132.2 kB / 452.4 MB, free: 7.332 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.934e-05/0.4372, allocations: 15.81 kB / 452.4 MB, free: 7.316 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.691e-05/0.4373, allocations: 16.78 kB / 452.4 MB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.4373, allocations: 7.938 kB / 452.4 MB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4373, allocations: 3.938 kB / 452.4 MB, free: 7.301 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.4373, allocations: 7.938 kB / 452.4 MB, free: 7.293 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002932/0.4376, allocations: 245.9 kB / 452.7 MB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4376, allocations: 7.938 kB / 452.7 MB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002967/0.4379, allocations: 50.58 kB / 452.7 MB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.438, allocations: 0 / 452.7 MB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.438, allocations: 0 / 452.7 MB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.438, allocations: 4 kB / 452.7 MB, free: 6.992 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.438, allocations: 4 kB / 452.7 MB, free: 6.988 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003411/0.4383, allocations: 220 kB / 453 MB, free: 6.812 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.734e-05/0.4384, allocations: 104.2 kB / 453.1 MB, free: 6.695 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.639e-05/0.4385, allocations: 0 / 453.1 MB, free: 6.695 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.4387, allocations: 31.97 kB / 453.1 MB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.854e-05/0.4388, allocations: 23.28 kB / 453.1 MB, free: 6.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.4388, allocations: 4 kB / 453.1 MB, free: 6.641 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000137/0.4389, allocations: 155.3 kB / 453.3 MB, free: 6.516 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.439, allocations: 0 / 453.3 MB, free: 6.516 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003914/0.4394, allocations: 95.69 kB / 453.4 MB, free: 6.422 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 (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.0006709/0.44, allocations: 0.7638 MB / 454.1 MB, free: 5.688 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004086/0.4405, allocations: 322 kB / 454.4 MB, free: 5.418 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4405, allocations: 0 / 454.4 MB, free: 5.418 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.009e-05/0.4406, allocations: 54 kB / 454.5 MB, free: 5.383 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.4408, allocations: 27.91 kB / 454.5 MB, free: 5.359 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008006/0.4416, allocations: 360.1 kB / 454.9 MB, free: 5.004 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.4419, allocations: 0.7482 MB / 455.6 MB, free: 4.227 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000156/0.4421, allocations: 26.06 kB / 455.6 MB, free: 4.199 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.173e-05/0.4422, allocations: 67.22 kB / 455.7 MB, free: 4.172 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4422, allocations: 0 / 455.7 MB, free: 4.172 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02262/0.4648, allocations: 4.146 MB / 459.9 MB, free: 24 kB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002099/0.4651, allocations: 147.2 kB / 460 MB, free: 15.83 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/2.118, allocations: 0 / 460 MB, free: 15.83 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat does not exist to compare? outputFormat=mat