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.002266/0.002266, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.239/2.239, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001138/0.001137, allocations: 89.2 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.724e-05/2.731e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3386, allocations: 47.56 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1263/0.465, allocations: 78.49 MB / 440.9 MB, free: 7.711 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.4653, allocations: 79.95 kB / 441 MB, free: 7.633 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02679/0.4921, allocations: 5.425 MB / 446.4 MB, free: 2.234 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4922, allocations: 0 / 446.4 MB, free: 2.234 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.478e-05/0.4922, allocations: 8 kB / 446.4 MB, free: 2.227 MB / 331.1 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.001504/0.4937, allocations: 0.5537 MB / 447 MB, free: 1.621 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.797e-05/0.4938, allocations: 12.03 kB / 447 MB, free: 1.609 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.494, allocations: 27.72 kB / 447 MB, free: 1.582 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005674/0.4945, allocations: 267.2 kB / 447.3 MB, free: 1.281 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.4946, allocations: 11.95 kB / 447.3 MB, free: 1.27 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.932e-05/0.4947, allocations: 12 kB / 447.3 MB, free: 1.258 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004758/0.4951, allocations: 145.9 kB / 447.5 MB, free: 1.117 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004528/0.4956, allocations: 156 kB / 447.6 MB, free: 0.957 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.4956, allocations: 0 / 447.6 MB, free: 0.957 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.345e-05/0.4957, allocations: 0 / 447.6 MB, free: 0.957 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.4957, allocations: 8 kB / 447.6 MB, free: 0.9492 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002483/0.4982, allocations: 0.8394 MB / 448.5 MB, free: 52 kB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005987/0.4989, allocations: 150.8 kB / 448.6 MB, free: 15.89 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.499, allocations: 56.84 kB / 448.7 MB, free: 15.83 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.044e-05/0.4991, allocations: 0 / 448.7 MB, free: 15.83 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003102/0.4994, allocations: 113.6 kB / 448.8 MB, free: 15.7 MB / 347.1 MB Notification: Performance of pre-optimization done (n=13): time 2.114e-06/0.4994, allocations: 0 / 448.8 MB, free: 15.7 MB / 347.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004362/0.4999, allocations: 137.3 kB / 448.9 MB, free: 15.57 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.018e-05/0.5, allocations: 89.11 kB / 449 MB, free: 15.46 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003175/0.5003, allocations: 197.8 kB / 449.2 MB, free: 15.26 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.5003, allocations: 25.7 kB / 449.2 MB, free: 15.23 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001743/0.5005, allocations: 226.3 kB / 449.4 MB, free: 15 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.496e-05/0.5006, allocations: 39.45 kB / 449.5 MB, free: 14.96 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.677e-05/0.5006, allocations: 0 / 449.5 MB, free: 14.96 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.5008, allocations: 322.8 kB / 449.8 MB, free: 14.64 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.5009, allocations: 46.62 kB / 449.8 MB, free: 14.59 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.5012, allocations: 103 kB / 449.9 MB, free: 14.47 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001709/0.5013, allocations: 54.58 kB / 450 MB, free: 14.42 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.5014, allocations: 4.031 kB / 450 MB, free: 14.41 MB / 347.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005111/0.5019, allocations: 173.3 kB / 450.2 MB, free: 14.24 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003996/0.5023, allocations: 0.6452 MB / 450.8 MB, free: 13.54 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.5023, allocations: 4 kB / 450.8 MB, free: 13.54 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.5024, allocations: 4 kB / 450.8 MB, free: 13.53 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005386/0.5029, allocations: 66.02 kB / 450.9 MB, free: 13.47 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.5029, allocations: 3.938 kB / 450.9 MB, free: 13.46 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004961/0.5035, allocations: 47.81 kB / 450.9 MB, free: 13.42 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.256e-05/0.5035, allocations: 8 kB / 450.9 MB, free: 13.41 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.5035, allocations: 5.031 kB / 450.9 MB, free: 13.41 MB / 347.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004527/0.504, allocations: 137.5 kB / 451.1 MB, free: 13.27 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.504, allocations: 4 kB / 451.1 MB, free: 13.27 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.757e-06/0.504, allocations: 4 kB / 451.1 MB, free: 13.27 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004176/0.5045, allocations: 56.16 kB / 451.1 MB, free: 13.21 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.5045, allocations: 11.92 kB / 451.2 MB, free: 13.2 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003572/0.5049, allocations: 31.83 kB / 451.2 MB, free: 13.17 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.447e-05/0.5049, allocations: 4.938 kB / 451.2 MB, free: 13.16 MB / 347.1 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 0.0001453/0.5051, allocations: 116.9 kB / 451.3 MB, free: 13.04 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003876/0.5055, allocations: 129.4 kB / 451.4 MB, free: 12.91 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.858e-05/0.5055, allocations: 23.7 kB / 451.5 MB, free: 12.89 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.395e-05/0.5056, allocations: 18.81 kB / 451.5 MB, free: 12.88 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.5056, allocations: 7.938 kB / 451.5 MB, free: 12.87 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.5057, allocations: 0 / 451.5 MB, free: 12.87 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.407e-06/0.5057, allocations: 7.938 kB / 451.5 MB, free: 12.86 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000398/0.5061, allocations: 242.5 kB / 451.7 MB, free: 12.59 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.5061, allocations: 0 / 451.7 MB, free: 12.59 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004583/0.5066, allocations: 47.97 kB / 451.8 MB, free: 12.54 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.839e-06/0.5066, allocations: 5.359 kB / 451.8 MB, free: 12.54 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.5066, allocations: 0 / 451.8 MB, free: 12.54 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.5066, allocations: 5.875 kB / 451.8 MB, free: 12.54 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.5067, allocations: 0 / 451.8 MB, free: 12.54 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005998/0.5073, allocations: 229.2 kB / 452 MB, free: 12.29 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.5074, allocations: 100.9 kB / 452.1 MB, free: 12.18 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.444e-05/0.5075, allocations: 0 / 452.1 MB, free: 12.18 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004312/0.5079, allocations: 35.97 kB / 452.1 MB, free: 12.14 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.508, allocations: 19.97 kB / 452.2 MB, free: 12.12 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.5081, allocations: 4.062 kB / 452.2 MB, free: 12.12 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002303/0.5083, allocations: 152.8 kB / 452.3 MB, free: 11.97 MB / 347.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5083, allocations: 0 / 452.3 MB, free: 11.97 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0006384/0.509, allocations: 95.69 kB / 452.4 MB, free: 11.88 MB / 347.1 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.0009993/0.51, allocations: 0.7621 MB / 453.2 MB, free: 11.08 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0007236/0.5107, allocations: 306.7 kB / 453.5 MB, free: 10.76 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.5108, allocations: 4 kB / 453.5 MB, free: 10.75 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001708/0.5109, allocations: 56.42 kB / 453.5 MB, free: 10.7 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004329/0.5114, allocations: 32.58 kB / 453.6 MB, free: 10.67 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/0.5128, allocations: 387.1 kB / 453.9 MB, free: 10.25 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004123/0.5132, allocations: 0.7482 MB / 454.7 MB, free: 9.477 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002321/0.5135, allocations: 74.98 kB / 454.8 MB, free: 9.406 MB / 347.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5135, allocations: 0 / 454.8 MB, free: 9.406 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.485/2.998, allocations: 3.771 MB / 458.5 MB, free: 5.664 MB / 347.1 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