Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",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.001042/0.001042, allocations: 183.3 kB / 8.132 MB, free: 2.219 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.128/1.128, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009414/0.0009414, allocations: 88.97 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0982/0.09917, allocations: 55.84 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.3053, allocations: 50.4 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08578/0.3911, allocations: 79.96 MB / 467 MB, free: 6.805 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001903/0.3913, allocations: 76.52 kB / 467.1 MB, free: 6.73 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.0173/0.4086, allocations: 6.171 MB / 473.2 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.4087, allocations: 11.98 kB / 473.2 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.595e-05/0.4088, allocations: 31.62 kB / 473.3 MB, free: 492 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000367/0.4091, allocations: 276.2 kB / 473.5 MB, free: 176 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.4092, allocations: 4 kB / 473.5 MB, free: 172 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.329e-05/0.4092, allocations: 12 kB / 473.6 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003147/0.4095, allocations: 141.5 kB / 473.7 MB, free: 20 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003357/0.4099, allocations: 201.1 kB / 473.9 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.4099, allocations: 0 / 473.9 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.276e-05/0.4099, allocations: 0 / 473.9 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.4099, allocations: 8 kB / 473.9 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001718/0.4117, allocations: 0.9857 MB / 474.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002668/0.4119, allocations: 126.6 kB / 475 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.97e-05/0.4121, allocations: 54.73 kB / 475.1 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.4121, allocations: 4 kB / 475.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000171/0.4123, allocations: 118 kB / 475.2 MB, free: 14.42 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.543e-06/0.4123, allocations: 3.938 kB / 475.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006226/0.4129, allocations: 226.6 kB / 475.4 MB, free: 14.19 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.33e-05/0.413, allocations: 110.8 kB / 475.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002513/0.4132, allocations: 220.2 kB / 475.7 MB, free: 13.83 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.4133, allocations: 29.69 kB / 475.8 MB, free: 13.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.358e-05/0.4134, allocations: 163.8 kB / 475.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.407e-05/0.4134, allocations: 39.45 kB / 476 MB, free: 13.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.15e-05/0.4134, allocations: 0 / 476 MB, free: 13.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.846e-05/0.4135, allocations: 326.8 kB / 476.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.4136, allocations: 55.94 kB / 476.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.4138, allocations: 134.2 kB / 476.5 MB, free: 13.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.4139, allocations: 67.84 kB / 476.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4139, allocations: 0 / 476.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006205/0.4145, allocations: 289.1 kB / 476.8 MB, free: 12.69 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.4145, allocations: 4 kB / 476.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.4146, allocations: 7.984 kB / 476.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001857/0.4148, allocations: 48.83 kB / 476.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000219/0.415, allocations: 55.94 kB / 476.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001427/0.4164, allocations: 1.524 MB / 478.4 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003379/0.4168, allocations: 63.81 kB / 478.5 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.267e-05/0.4168, allocations: 8 kB / 478.5 MB, free: 10.86 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: 10 * 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 (21): * Single equations (assignments): 19 * 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.0001166/0.4169, allocations: 113.1 kB / 478.6 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.417, allocations: 27.78 kB / 478.7 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.192e-05/0.417, allocations: 25.7 kB / 478.7 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.417, allocations: 0 / 478.7 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.417, allocations: 8.031 kB / 478.7 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.417, allocations: 5.031 kB / 478.7 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002145/0.4173, allocations: 250.1 kB / 478.9 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.4173, allocations: 0 / 478.9 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.4175, allocations: 39.91 kB / 479 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001234/0.4176, allocations: 44.75 kB / 479 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.4176, allocations: 3.984 kB / 479 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001357/0.419, allocations: 1.517 MB / 480.5 MB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.419, allocations: 0 / 480.5 MB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005237/0.4195, allocations: 256.5 kB / 480.8 MB, free: 8.41 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006113/0.4201, allocations: 0.6276 MB / 481.4 MB, free: 7.758 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.787e-05/0.4202, allocations: 92.91 kB / 481.5 MB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.254e-05/0.4203, allocations: 6.156 kB / 481.5 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002902/0.4206, allocations: 52.09 kB / 481.6 MB, free: 7.594 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.503e-05/0.4206, allocations: 11.97 kB / 481.6 MB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/0.4207, allocations: 8 kB / 481.6 MB, free: 7.574 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001346/0.4208, allocations: 176.5 kB / 481.8 MB, free: 7.402 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009688/0.4218, allocations: 67.83 kB / 481.8 MB, free: 7.336 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.0001397/0.4219, allocations: 103.2 kB / 481.9 MB, free: 7.223 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004505/0.4224, allocations: 263.5 kB / 482.2 MB, free: 6.949 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4224, allocations: 0.5625 kB / 482.2 MB, free: 6.949 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002189/0.4226, allocations: 182.6 kB / 482.4 MB, free: 6.762 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002435/0.4229, allocations: 31.41 kB / 482.4 MB, free: 6.734 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002687/0.4256, allocations: 0.8208 MB / 483.2 MB, free: 5.883 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003019/0.4259, allocations: 0.7789 MB / 484 MB, free: 5.082 MB / 362.7 MB Notification: Performance of SimCode: time 3.3e-07/0.4259, allocations: 3.938 kB / 484 MB, free: 5.078 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat does not exist to compare? outputFormat=mat