Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009517/0.0009517, allocations: 179.5 kB / 8.477 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.077/1.077, allocations: 205.2 MB / 214.1 MB, free: 5.09 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.0008781/0.000878, allocations: 89.98 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1575/0.1584, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06351/0.2219, allocations: 47.58 MB / 362.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2058/0.4278, allocations: 77.5 MB / 440.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001828/0.428, allocations: 74.31 kB / 440.2 MB, free: 10.75 MB / 314.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.01586/0.4439, allocations: 6.081 MB / 446.3 MB, free: 9.855 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.4439, allocations: 7.688 kB / 446.3 MB, free: 9.855 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.63e-05/0.444, allocations: 34.66 kB / 446.3 MB, free: 9.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002748/0.4443, allocations: 270.1 kB / 446.6 MB, free: 9.594 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.4443, allocations: 7.781 kB / 446.6 MB, free: 9.594 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.155e-05/0.4444, allocations: 15.72 kB / 446.6 MB, free: 9.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002981/0.4447, allocations: 153.3 kB / 446.8 MB, free: 9.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003087/0.445, allocations: 224.8 kB / 447 MB, free: 9.508 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.445, allocations: 8.828 kB / 447 MB, free: 9.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.517e-05/0.445, allocations: 0 / 447 MB, free: 9.5 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.4451, allocations: 11.62 kB / 447 MB, free: 9.496 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001368/0.4464, allocations: 1.053 MB / 448.1 MB, free: 8.754 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.4467, allocations: 128.1 kB / 448.2 MB, free: 8.723 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.374e-05/0.4468, allocations: 57.25 kB / 448.2 MB, free: 8.711 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.888e-05/0.4469, allocations: 3.906 kB / 448.2 MB, free: 8.707 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001303/0.447, allocations: 121.8 kB / 448.4 MB, free: 8.617 MB / 314.7 MB Notification: Performance of pre-optimization done (n=12): time 1.342e-06/0.447, allocations: 3.938 kB / 448.4 MB, free: 8.613 MB / 314.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005318/0.4475, allocations: 176.5 kB / 448.5 MB, free: 8.539 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/0.4476, allocations: 110.5 kB / 448.7 MB, free: 8.414 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001728/0.4478, allocations: 224.3 kB / 448.9 MB, free: 8.301 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.4478, allocations: 25.7 kB / 448.9 MB, free: 8.27 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.174e-05/0.4479, allocations: 179.5 kB / 449.1 MB, free: 8.117 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.511e-05/0.4479, allocations: 42.42 kB / 449.1 MB, free: 8.086 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.179e-05/0.4479, allocations: 0 / 449.1 MB, free: 8.086 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.26e-05/0.448, allocations: 337.5 kB / 449.4 MB, free: 7.766 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.844e-05/0.4481, allocations: 48.8 kB / 449.5 MB, free: 7.762 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.4482, allocations: 157.1 kB / 449.6 MB, free: 7.625 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.907e-05/0.4483, allocations: 67.05 kB / 449.7 MB, free: 7.609 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.4483, allocations: 0 / 449.7 MB, free: 7.609 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005879/0.4489, allocations: 282.7 kB / 450 MB, free: 7.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.4489, allocations: 8.219 kB / 450 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.4489, allocations: 0 / 450 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001978/0.4491, allocations: 57.56 kB / 450 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002094/0.4494, allocations: 61.61 kB / 450.1 MB, free: 7.465 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001242/0.4506, allocations: 1.449 MB / 451.6 MB, free: 6.184 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003352/0.451, allocations: 54.25 kB / 451.6 MB, free: 6.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.152e-05/0.451, allocations: 10.69 kB / 451.6 MB, free: 6.16 MB / 314.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.792e-05/0.4511, allocations: 119.7 kB / 451.7 MB, free: 6.043 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.029e-05/0.4511, allocations: 27.34 kB / 451.8 MB, free: 6.027 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.316e-05/0.4512, allocations: 19.69 kB / 451.8 MB, free: 6.023 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.4512, allocations: 0 / 451.8 MB, free: 6.023 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.4512, allocations: 3.984 kB / 451.8 MB, free: 6.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.4512, allocations: 0 / 451.8 MB, free: 6.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001676/0.4513, allocations: 259.5 kB / 452 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.4514, allocations: 0 / 452 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001291/0.4515, allocations: 31.25 kB / 452.1 MB, free: 5.805 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001182/0.4516, allocations: 48.16 kB / 452.1 MB, free: 5.793 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.4516, allocations: 3.984 kB / 452.1 MB, free: 5.789 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001072/0.4527, allocations: 1.44 MB / 453.6 MB, free: 4.516 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.4527, allocations: 0 / 453.6 MB, free: 4.516 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004595/0.4532, allocations: 208.7 kB / 453.8 MB, free: 4.406 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004649/0.4537, allocations: 0.5809 MB / 454.3 MB, free: 3.926 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.4538, allocations: 122.9 kB / 454.5 MB, free: 19.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.289e-05/0.4539, allocations: 0 / 454.5 MB, free: 19.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002561/0.4541, allocations: 42.8 kB / 454.5 MB, free: 19.79 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.884e-05/0.4542, allocations: 15.02 kB / 454.5 MB, free: 19.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.4542, allocations: 7.922 kB / 454.5 MB, free: 19.77 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001292/0.4543, allocations: 173.7 kB / 454.7 MB, free: 19.69 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008731/0.4552, allocations: 76.59 kB / 454.8 MB, free: 19.67 MB / 330.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.0001248/0.4554, allocations: 98.56 kB / 454.9 MB, free: 19.58 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003885/0.4557, allocations: 282.5 kB / 455.1 MB, free: 19.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4558, allocations: 0 / 455.1 MB, free: 19.43 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001861/0.456, allocations: 155.8 kB / 455.3 MB, free: 19.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002087/0.4562, allocations: 37.84 kB / 455.3 MB, free: 19.31 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006289/0.4568, allocations: 277.7 kB / 455.6 MB, free: 19.15 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003397/0.4572, allocations: 0.7842 MB / 456.4 MB, free: 18.4 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4572, allocations: 0 / 456.4 MB, free: 18.4 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat does not exist to compare? outputFormat=mat