Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",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 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 185.6 kB / 8.136 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.134/1.134, allocations: 221.4 MB / 229.9 MB, free: 3.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008645/0.0008645, allocations: 95.03 kB / 280.8 MB, free: 1.32 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09617/0.09707, allocations: 55.84 MB / 336.6 MB, free: 9.477 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.179/0.2761, allocations: 50.39 MB / 387 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07831/0.3544, allocations: 79.96 MB / 467 MB, free: 6.934 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.3547, allocations: 83.77 kB / 467.1 MB, free: 6.855 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.017/0.3717, allocations: 6.158 MB / 473.2 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.3717, allocations: 8 kB / 473.2 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.282e-05/0.3718, allocations: 35.56 kB / 473.3 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003269/0.3722, allocations: 276.1 kB / 473.5 MB, free: 304 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.3722, allocations: 4 kB / 473.5 MB, free: 300 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.097e-05/0.3722, allocations: 16 kB / 473.6 MB, free: 284 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002685/0.3725, allocations: 141.4 kB / 473.7 MB, free: 144 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003363/0.3728, allocations: 193 kB / 473.9 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.3729, allocations: 3.938 kB / 473.9 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/0.3729, allocations: 3.984 kB / 473.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.3729, allocations: 8 kB / 473.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001623/0.3745, allocations: 0.9896 MB / 474.9 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002629/0.3748, allocations: 124.1 kB / 475 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.472e-05/0.3749, allocations: 53.08 kB / 475.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.3749, allocations: 3.938 kB / 475.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001585/0.3751, allocations: 126.7 kB / 475.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.453e-06/0.3751, allocations: 0 / 475.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005722/0.3757, allocations: 214.2 kB / 475.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.3757, allocations: 102.8 kB / 475.5 MB, free: 14.19 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001922/0.3759, allocations: 224.2 kB / 475.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.376, allocations: 25.7 kB / 475.7 MB, free: 13.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.402e-05/0.3761, allocations: 155.9 kB / 475.9 MB, free: 13.78 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.251e-05/0.3761, allocations: 43.39 kB / 475.9 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.147e-05/0.3761, allocations: 0 / 475.9 MB, free: 13.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.328e-05/0.3762, allocations: 340.7 kB / 476.3 MB, free: 13.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.161e-05/0.3763, allocations: 48 kB / 476.3 MB, free: 13.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.3764, allocations: 121.3 kB / 476.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.161e-05/0.3765, allocations: 48.02 kB / 476.5 MB, free: 13.15 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3765, allocations: 4 kB / 476.5 MB, free: 13.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006117/0.3772, allocations: 281.3 kB / 476.8 MB, free: 12.87 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.3772, allocations: 8 kB / 476.8 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.3772, allocations: 4.031 kB / 476.8 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001834/0.3774, allocations: 48.83 kB / 476.8 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002148/0.3776, allocations: 47.97 kB / 476.9 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001324/0.3789, allocations: 1.427 MB / 478.3 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003296/0.3793, allocations: 59.77 kB / 478.3 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.281e-05/0.3793, allocations: 10.42 kB / 478.4 MB, free: 11.16 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 17 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001242/0.3795, allocations: 120.9 kB / 478.5 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.469e-05/0.3795, allocations: 19.72 kB / 478.5 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.155e-05/0.3795, allocations: 25.77 kB / 478.5 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.3796, allocations: 0 / 478.5 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-06/0.3796, allocations: 0 / 478.5 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.3796, allocations: 4.734 kB / 478.5 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002059/0.3798, allocations: 259.1 kB / 478.8 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3798, allocations: 0 / 478.8 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.38, allocations: 35.97 kB / 478.8 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001119/0.3801, allocations: 36.84 kB / 478.8 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.3801, allocations: 3.984 kB / 478.9 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001216/0.3813, allocations: 1.442 MB / 480.3 MB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3813, allocations: 0 / 480.3 MB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005176/0.3819, allocations: 244.2 kB / 480.5 MB, free: 8.805 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006072/0.3825, allocations: 0.6158 MB / 481.1 MB, free: 8.164 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.261e-05/0.3826, allocations: 96.86 kB / 481.2 MB, free: 8.047 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.452e-05/0.3826, allocations: 3.906 kB / 481.2 MB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002772/0.3829, allocations: 51.95 kB / 481.3 MB, free: 7.992 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.333e-05/0.383, allocations: 15.97 kB / 481.3 MB, free: 7.977 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.383, allocations: 7.938 kB / 481.3 MB, free: 7.969 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000136/0.3831, allocations: 168.5 kB / 481.5 MB, free: 7.805 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008502/0.384, allocations: 63.84 kB / 481.5 MB, free: 7.742 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 (9): * Single equations (assignments): 6 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001386/0.3841, allocations: 103.2 kB / 481.6 MB, free: 7.629 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004045/0.3845, allocations: 272.5 kB / 481.9 MB, free: 7.348 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3846, allocations: 0 / 481.9 MB, free: 7.348 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000204/0.3848, allocations: 165.8 kB / 482.1 MB, free: 7.176 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002405/0.385, allocations: 35.62 kB / 482.1 MB, free: 7.141 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000612/0.3856, allocations: 272.2 kB / 482.4 MB, free: 6.848 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003593/0.386, allocations: 0.7787 MB / 483.2 MB, free: 6.043 MB / 362.7 MB Notification: Performance of SimCode: time 1.843e-06/0.386, allocations: 0 / 483.2 MB, free: 6.043 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat does not exist to compare? outputFormat=mat