Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.Comparator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",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.0009531/0.0009531, allocations: 178.9 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.086/1.086, allocations: 205.2 MB / 214.1 MB, free: 5.082 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.0008335/0.0008335, allocations: 82.33 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1504/0.1513, allocations: 52.98 MB / 315.1 MB, free: 41.38 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06092/0.2122, allocations: 47.57 MB / 362.6 MB, free: 9.855 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1985/0.4108, allocations: 79.31 MB / 442 MB, free: 10.72 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000193/0.411, allocations: 78.48 kB / 442 MB, free: 10.72 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.01588/0.4269, allocations: 6.468 MB / 448.5 MB, free: 9.207 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.985e-05/0.427, allocations: 19.48 kB / 448.5 MB, free: 9.199 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.097e-05/0.427, allocations: 38.94 kB / 448.6 MB, free: 9.176 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003025/0.4273, allocations: 281.8 kB / 448.8 MB, free: 8.938 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.4274, allocations: 11.53 kB / 448.8 MB, free: 8.938 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.471e-05/0.4274, allocations: 11.56 kB / 448.9 MB, free: 8.938 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002976/0.4277, allocations: 178.9 kB / 449 MB, free: 8.934 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002962/0.428, allocations: 203.7 kB / 449.2 MB, free: 8.867 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.428, allocations: 3.906 kB / 449.2 MB, free: 8.863 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.393e-05/0.4281, allocations: 0 / 449.2 MB, free: 8.863 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.4281, allocations: 3.906 kB / 449.2 MB, free: 8.863 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001481/0.4296, allocations: 1.082 MB / 450.3 MB, free: 8.152 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002772/0.4299, allocations: 111.6 kB / 450.4 MB, free: 8.121 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.147e-05/0.4299, allocations: 49.17 kB / 450.5 MB, free: 8.109 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.43, allocations: 0 / 450.5 MB, free: 8.109 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001153/0.4301, allocations: 109.2 kB / 450.6 MB, free: 8.031 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 1.152e-06/0.4301, allocations: 0.8438 kB / 450.6 MB, free: 8.031 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002957/0.4304, allocations: 134.5 kB / 450.7 MB, free: 7.969 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.946e-05/0.4304, allocations: 84.19 kB / 450.8 MB, free: 7.871 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.4306, allocations: 235.8 kB / 451 MB, free: 7.758 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.4306, allocations: 33.48 kB / 451.1 MB, free: 7.723 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.917e-05/0.4307, allocations: 195.4 kB / 451.2 MB, free: 7.559 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.326e-05/0.4307, allocations: 33.86 kB / 451.3 MB, free: 7.535 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.21e-05/0.4308, allocations: 0 / 451.3 MB, free: 7.535 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.317e-05/0.4308, allocations: 339.3 kB / 451.6 MB, free: 7.211 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.752e-05/0.4309, allocations: 49.83 kB / 451.7 MB, free: 7.211 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.431, allocations: 156.7 kB / 451.8 MB, free: 7.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.56e-05/0.4311, allocations: 65.66 kB / 451.9 MB, free: 7.059 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.4311, allocations: 7.719 kB / 451.9 MB, free: 7.055 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003507/0.4315, allocations: 233.9 kB / 452.1 MB, free: 6.965 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002176/0.4317, allocations: 1.394 MB / 453.5 MB, free: 5.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.4317, allocations: 7.828 kB / 453.5 MB, free: 5.496 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001562/0.4319, allocations: 31.48 kB / 453.5 MB, free: 5.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000265/0.4322, allocations: 77.33 kB / 453.6 MB, free: 5.461 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006892/0.4329, allocations: 1.245 MB / 454.9 MB, free: 4.219 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000321/0.4332, allocations: 54.39 kB / 454.9 MB, free: 4.191 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.4332, allocations: 15.34 kB / 454.9 MB, free: 4.191 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.881e-06/0.4332, allocations: 3.812 kB / 454.9 MB, free: 4.191 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002924/0.4335, allocations: 185.7 kB / 455.1 MB, free: 4.141 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.4335, allocations: 3.844 kB / 455.1 MB, free: 4.141 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.538e-05/0.4336, allocations: 24.12 kB / 455.1 MB, free: 4.129 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002196/0.4339, allocations: 68.8 kB / 455.2 MB, free: 4.109 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006602/0.4345, allocations: 1.244 MB / 456.5 MB, free: 18.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.4348, allocations: 39.22 kB / 456.5 MB, free: 18.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.813e-05/0.4348, allocations: 11.5 kB / 456.5 MB, free: 18.86 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (27): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.719e-05/0.4349, allocations: 120.9 kB / 456.6 MB, free: 18.74 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.153e-05/0.435, allocations: 23.28 kB / 456.6 MB, free: 18.73 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.045e-05/0.435, allocations: 28.23 kB / 456.7 MB, free: 18.72 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.435, allocations: 4 kB / 456.7 MB, free: 18.71 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.435, allocations: 0 / 456.7 MB, free: 18.71 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.435, allocations: 0 / 456.7 MB, free: 18.71 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003424/0.4354, allocations: 414 kB / 457.1 MB, free: 18.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4354, allocations: 0 / 457.1 MB, free: 18.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001677/0.4356, allocations: 38.84 kB / 457.1 MB, free: 18.37 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.29e-05/0.4357, allocations: 32.08 kB / 457.2 MB, free: 18.35 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.4357, allocations: 4 kB / 457.2 MB, free: 18.35 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007711/0.4365, allocations: 1.248 MB / 458.4 MB, free: 17.11 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4365, allocations: 0 / 458.4 MB, free: 17.11 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002261/0.4367, allocations: 178.7 kB / 458.6 MB, free: 16.99 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002936/0.437, allocations: 0.5558 MB / 459.1 MB, free: 16.49 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.223e-05/0.4371, allocations: 104.1 kB / 459.2 MB, free: 16.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.065e-05/0.4372, allocations: 3.688 kB / 459.2 MB, free: 16.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002269/0.4374, allocations: 42.31 kB / 459.3 MB, free: 16.36 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.571e-05/0.4374, allocations: 14.75 kB / 459.3 MB, free: 16.35 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.4375, allocations: 7.188 kB / 459.3 MB, free: 16.35 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001392/0.4376, allocations: 189.3 kB / 459.5 MB, free: 16.26 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001591/0.4392, allocations: 123.4 kB / 459.6 MB, free: 16.24 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (10): * Single equations (assignments): 7 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001228/0.4393, allocations: 102.4 kB / 459.7 MB, free: 16.14 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006567/0.44, allocations: 0.4968 MB / 460.2 MB, free: 15.84 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.44, allocations: 3.906 kB / 460.2 MB, free: 15.84 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000202/0.4402, allocations: 159.7 kB / 460.4 MB, free: 15.73 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002467/0.4405, allocations: 31.27 kB / 460.4 MB, free: 15.72 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006473/0.4411, allocations: 310.5 kB / 460.7 MB, free: 15.54 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003363/0.4415, allocations: 0.7913 MB / 461.5 MB, free: 14.79 MB / 330.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4415, allocations: 0 / 461.5 MB, free: 14.79 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat