Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001038, allocations: 199.2 kB / 8.536 MB, free: 1.727 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.124/1.124, allocations: 225.5 MB / 234.4 MB, free: 3.461 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008658/0.0008659, allocations: 91.42 kB / 286.3 MB, free: 5.211 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09039/0.09128, allocations: 56.92 MB / 343.3 MB, free: 8.684 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08183/0.1731, allocations: 51.48 MB / 394.7 MB, free: 5.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.21/0.3832, allocations: 81.5 MB / 476.2 MB, free: 11.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001897/0.3834, allocations: 77.52 kB / 476.3 MB, free: 11 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.01574/0.3991, allocations: 6.661 MB / 483 MB, free: 5.918 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.92e-05/0.3992, allocations: 8 kB / 483 MB, free: 5.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.378e-05/0.3993, allocations: 31.62 kB / 483 MB, free: 5.879 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002897/0.3996, allocations: 286.9 kB / 483.3 MB, free: 5.594 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.3996, allocations: 15.36 kB / 483.3 MB, free: 5.582 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.928e-05/0.3996, allocations: 25.06 kB / 483.3 MB, free: 5.559 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002756/0.3999, allocations: 168.3 kB / 483.5 MB, free: 5.465 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003072/0.4002, allocations: 225.7 kB / 483.7 MB, free: 5.293 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.4002, allocations: 0 / 483.7 MB, free: 5.293 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.4003, allocations: 4 kB / 483.7 MB, free: 5.289 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.4003, allocations: 4 kB / 483.7 MB, free: 5.285 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001483/0.4018, allocations: 1.095 MB / 484.8 MB, free: 4.316 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002789/0.4021, allocations: 127.3 kB / 484.9 MB, free: 4.223 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.529e-05/0.4022, allocations: 64 kB / 485 MB, free: 4.184 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.4022, allocations: 7.906 kB / 485 MB, free: 4.176 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001273/0.4023, allocations: 116.3 kB / 485.1 MB, free: 4.066 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.4023, allocations: 3.281 kB / 485.1 MB, free: 4.066 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002298/0.4026, allocations: 122.9 kB / 485.2 MB, free: 3.969 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.301e-05/0.4026, allocations: 85.05 kB / 485.3 MB, free: 3.867 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/0.4028, allocations: 215.6 kB / 485.5 MB, free: 3.688 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.4028, allocations: 25.7 kB / 485.6 MB, free: 3.656 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.607e-05/0.4029, allocations: 186.5 kB / 485.7 MB, free: 3.484 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.509e-05/0.4029, allocations: 42.83 kB / 485.8 MB, free: 3.449 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.11e-05/0.4029, allocations: 0 / 485.8 MB, free: 3.449 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.392e-05/0.4029, allocations: 330.5 kB / 486.1 MB, free: 3.125 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.847e-05/0.403, allocations: 55.03 kB / 486.2 MB, free: 3.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.4032, allocations: 138 kB / 486.3 MB, free: 2.945 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.229e-05/0.4033, allocations: 70.62 kB / 486.4 MB, free: 2.902 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.4033, allocations: 0 / 486.4 MB, free: 2.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000312/0.4036, allocations: 207.4 kB / 486.6 MB, free: 2.738 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.4036, allocations: 4 kB / 486.6 MB, free: 2.734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.4036, allocations: 4.344 kB / 486.6 MB, free: 2.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.4036, allocations: 11.98 kB / 486.6 MB, free: 2.719 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003066/0.4039, allocations: 75.89 kB / 486.7 MB, free: 2.645 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.404, allocations: 4 kB / 486.7 MB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002943/0.4043, allocations: 59.7 kB / 486.7 MB, free: 2.582 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.099e-05/0.4043, allocations: 11.94 kB / 486.7 MB, free: 2.574 MB / 346.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 7.043e-05/0.4044, allocations: 113.8 kB / 486.8 MB, free: 2.457 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.066e-05/0.4044, allocations: 23.72 kB / 486.9 MB, free: 2.434 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.988e-05/0.4045, allocations: 21.45 kB / 486.9 MB, free: 2.422 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.4045, allocations: 4 kB / 486.9 MB, free: 2.418 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.758e-06/0.4045, allocations: 0 / 486.9 MB, free: 2.418 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.4045, allocations: 4 kB / 486.9 MB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001702/0.4047, allocations: 267.7 kB / 487.2 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4047, allocations: 0 / 487.2 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002597/0.4049, allocations: 63.64 kB / 487.2 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.4049, allocations: 0 / 487.2 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.405, allocations: 4 kB / 487.2 MB, free: 2.098 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.405, allocations: 0.875 kB / 487.2 MB, free: 2.098 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.405, allocations: 0 / 487.2 MB, free: 2.098 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002964/0.4053, allocations: 224.5 kB / 487.4 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003871/0.4057, allocations: 0.6624 MB / 488.1 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.434e-05/0.4057, allocations: 100.8 kB / 488.2 MB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.5e-05/0.4058, allocations: 7.625 kB / 488.2 MB, free: 1.219 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.406, allocations: 42.89 kB / 488.3 MB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.578e-05/0.4061, allocations: 15.92 kB / 488.3 MB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.4061, allocations: 4 kB / 488.3 MB, free: 1.164 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001082/0.4062, allocations: 167 kB / 488.4 MB, free: 1.031 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008226/0.4071, allocations: 67.75 kB / 488.5 MB, free: 0.9648 MB / 346.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.0001355/0.4072, allocations: 99.23 kB / 488.6 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002444/0.4075, allocations: 163.5 kB / 488.8 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4075, allocations: 224 / 488.8 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.4076, allocations: 58.94 kB / 488.8 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.4079, allocations: 49.61 kB / 488.9 MB, free: 0.668 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007252/0.4086, allocations: 341 kB / 489.2 MB, free: 344 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003322/0.4089, allocations: 0.782 MB / 490 MB, free: 15.53 MB / 362.7 MB Notification: Performance of SimCode: time 3.3e-07/0.409, allocations: 0 / 490 MB, free: 15.53 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat does not exist to compare? outputFormat=mat