Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",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.001093/0.001093, allocations: 203.4 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.151/1.151, allocations: 225.5 MB / 234.4 MB, free: 3.383 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008885/0.0008885, allocations: 94.97 kB / 286.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09775/0.09868, allocations: 56.91 MB / 343.2 MB, free: 8.684 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08075/0.1794, allocations: 51.48 MB / 394.7 MB, free: 5.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2231/0.4026, allocations: 79.88 MB / 474.6 MB, free: 12.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/0.4029, allocations: 75.58 kB / 474.7 MB, free: 12.4 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.01596/0.4189, allocations: 6.332 MB / 481 MB, free: 7.977 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.4189, allocations: 8 kB / 481 MB, free: 7.969 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.824e-05/0.419, allocations: 31.62 kB / 481 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002648/0.4192, allocations: 276 kB / 481.3 MB, free: 7.652 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/0.4193, allocations: 8 kB / 481.3 MB, free: 7.645 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.452e-05/0.4193, allocations: 12 kB / 481.3 MB, free: 7.633 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002955/0.4196, allocations: 154.9 kB / 481.5 MB, free: 7.543 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003357/0.42, allocations: 230.1 kB / 481.7 MB, free: 7.363 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.42, allocations: 3.938 kB / 481.7 MB, free: 7.359 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.609e-05/0.42, allocations: 4 kB / 481.7 MB, free: 7.355 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.42, allocations: 4 kB / 481.7 MB, free: 7.352 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001431/0.4215, allocations: 1.061 MB / 482.8 MB, free: 6.371 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003272/0.4218, allocations: 123.9 kB / 482.9 MB, free: 6.277 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.83e-05/0.4219, allocations: 52.86 kB / 483 MB, free: 6.242 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.745e-05/0.4219, allocations: 3.906 kB / 483 MB, free: 6.238 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00014/0.4221, allocations: 115.4 kB / 483.1 MB, free: 6.125 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.753e-06/0.4221, allocations: 96 / 483.1 MB, free: 6.125 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005564/0.4227, allocations: 194.2 kB / 483.3 MB, free: 5.957 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.725e-05/0.4227, allocations: 110.2 kB / 483.4 MB, free: 5.828 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.4229, allocations: 225.8 kB / 483.6 MB, free: 5.645 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.4229, allocations: 25.7 kB / 483.6 MB, free: 5.613 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.877e-05/0.423, allocations: 182.2 kB / 483.8 MB, free: 5.445 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.413e-05/0.423, allocations: 38.02 kB / 483.8 MB, free: 5.414 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.173e-05/0.423, allocations: 4 kB / 483.8 MB, free: 5.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.474e-05/0.4231, allocations: 328.1 kB / 484.2 MB, free: 5.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.629e-05/0.4231, allocations: 47.17 kB / 484.2 MB, free: 5.059 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.4233, allocations: 161.1 kB / 484.4 MB, free: 4.883 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.653e-05/0.4234, allocations: 60.08 kB / 484.4 MB, free: 4.844 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4234, allocations: 0 / 484.4 MB, free: 4.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005953/0.424, allocations: 281 kB / 484.7 MB, free: 4.609 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.424, allocations: 12.02 kB / 484.7 MB, free: 4.598 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.424, allocations: 7.188 kB / 484.7 MB, free: 4.594 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001909/0.4242, allocations: 53.53 kB / 484.8 MB, free: 4.555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002114/0.4244, allocations: 63.89 kB / 484.8 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/0.4256, allocations: 1.429 MB / 486.3 MB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003303/0.426, allocations: 59.72 kB / 486.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.184e-05/0.426, allocations: 11.31 kB / 486.3 MB, free: 2.984 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 7.53e-05/0.4261, allocations: 120.9 kB / 486.4 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.98e-05/0.4261, allocations: 23.09 kB / 486.5 MB, free: 2.84 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.344e-05/0.4261, allocations: 25.08 kB / 486.5 MB, free: 2.824 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.4262, allocations: 0 / 486.5 MB, free: 2.824 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.4262, allocations: 0.8125 kB / 486.5 MB, free: 2.824 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.4262, allocations: 3.984 kB / 486.5 MB, free: 2.82 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001617/0.4263, allocations: 261.1 kB / 486.7 MB, free: 2.566 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.4263, allocations: 0 / 486.7 MB, free: 2.566 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001326/0.4265, allocations: 35.91 kB / 486.8 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001185/0.4266, allocations: 51.09 kB / 486.8 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.4266, allocations: 3.984 kB / 486.8 MB, free: 2.488 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001063/0.4277, allocations: 1.431 MB / 488.3 MB, free: 1.055 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.4277, allocations: 0 / 488.3 MB, free: 1.055 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004564/0.4282, allocations: 214.6 kB / 488.5 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004834/0.4287, allocations: 0.5944 MB / 489.1 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.788e-05/0.4288, allocations: 107.2 kB / 489.2 MB, free: 168 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.213e-05/0.4288, allocations: 3.984 kB / 489.2 MB, free: 164 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002586/0.4291, allocations: 39.97 kB / 489.2 MB, free: 124 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.127e-05/0.4291, allocations: 15.34 kB / 489.2 MB, free: 112 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.4292, allocations: 7.688 kB / 489.2 MB, free: 108 kB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001602/0.4293, allocations: 164.7 kB / 489.4 MB, free: 15.97 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009045/0.4302, allocations: 79.69 kB / 489.5 MB, free: 15.89 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (7): * Single equations (assignments): 4 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001578/0.4304, allocations: 102.1 kB / 489.6 MB, free: 15.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004168/0.4308, allocations: 269.4 kB / 489.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4308, allocations: 0 / 489.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000208/0.4311, allocations: 173.6 kB / 490 MB, free: 15.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.4313, allocations: 31.67 kB / 490 MB, free: 15.38 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007175/0.432, allocations: 272 kB / 490.3 MB, free: 15.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003525/0.4324, allocations: 0.7821 MB / 491.1 MB, free: 14.3 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4324, allocations: 4 kB / 491.1 MB, free: 14.29 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat does not exist to compare? outputFormat=mat