Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001513/0.001513, allocations: 175.3 kB / 8.476 MB, free: 1.875 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.046/1.046, allocations: 205.2 MB / 214.1 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008371/0.0008371, allocations: 89.02 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08389/0.08476, allocations: 53 MB / 315.1 MB, free: 8.496 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1673/0.2521, allocations: 47.55 MB / 362.6 MB, free: 45.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0763/0.3285, allocations: 78.38 MB / 441 MB, free: 7.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/0.3287, allocations: 79.95 kB / 441.1 MB, free: 7.441 MB / 330.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.01687/0.3456, allocations: 6.067 MB / 447.2 MB, free: 1.355 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.3456, allocations: 8 kB / 447.2 MB, free: 1.348 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.546e-05/0.3457, allocations: 31.62 kB / 447.2 MB, free: 1.316 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000361/0.3461, allocations: 274.9 kB / 447.5 MB, free: 1.008 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.3461, allocations: 4 kB / 447.5 MB, free: 1.004 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.359e-05/0.3461, allocations: 15.98 kB / 447.5 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002869/0.3464, allocations: 148.9 kB / 447.6 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003409/0.3468, allocations: 162.4 kB / 447.8 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.3468, allocations: 4 kB / 447.8 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.388e-05/0.3468, allocations: 3.984 kB / 447.8 MB, free: 0.668 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.3468, allocations: 4 kB / 447.8 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001658/0.3485, allocations: 0.9115 MB / 448.7 MB, free: 15.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002624/0.3488, allocations: 127.3 kB / 448.8 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.621e-05/0.3489, allocations: 53.36 kB / 448.9 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.734e-05/0.3489, allocations: 3.984 kB / 448.9 MB, free: 15.49 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001629/0.3491, allocations: 122.8 kB / 449 MB, free: 15.35 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.343e-06/0.3491, allocations: 4 kB / 449 MB, free: 15.35 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005911/0.3497, allocations: 218.1 kB / 449.2 MB, free: 15.12 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/0.3498, allocations: 107.9 kB / 449.3 MB, free: 15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002236/0.35, allocations: 216.3 kB / 449.6 MB, free: 14.78 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.35, allocations: 25.7 kB / 449.6 MB, free: 14.75 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.3501, allocations: 163.8 kB / 449.7 MB, free: 14.58 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.074e-05/0.3502, allocations: 47.61 kB / 449.8 MB, free: 14.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.174e-05/0.3502, allocations: 0 / 449.8 MB, free: 14.54 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.3503, allocations: 326.8 kB / 450.1 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.3504, allocations: 58.42 kB / 450.2 MB, free: 14.15 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.3506, allocations: 121.4 kB / 450.3 MB, free: 14 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000102/0.3507, allocations: 54.94 kB / 450.3 MB, free: 13.95 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3507, allocations: 0 / 450.3 MB, free: 13.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006539/0.3514, allocations: 294.2 kB / 450.6 MB, free: 13.65 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002838/0.3517, allocations: 0.7908 MB / 451.4 MB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.455e-06/0.3517, allocations: 4 kB / 451.4 MB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000199/0.3519, allocations: 45.78 kB / 451.5 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002383/0.3521, allocations: 55.89 kB / 451.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003827/0.3525, allocations: 0.5842 MB / 452.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003333/0.3529, allocations: 59.86 kB / 452.2 MB, free: 12.03 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/0.3529, allocations: 8 kB / 452.2 MB, free: 12.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.482e-06/0.3529, allocations: 4 kB / 452.2 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002963/0.3532, allocations: 167.2 kB / 452.3 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.986e-06/0.3532, allocations: 0 / 452.3 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.171e-05/0.3533, allocations: 24.84 kB / 452.4 MB, free: 11.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.3535, allocations: 62.38 kB / 452.4 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008656/0.3544, allocations: 1.251 MB / 453.7 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002836/0.3547, allocations: 51.92 kB / 453.7 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.3547, allocations: 8 kB / 453.7 MB, free: 10.34 MB / 346.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: 9 * 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 (20): * Single equations (assignments): 18 * 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.0001288/0.3548, allocations: 113.9 kB / 453.8 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.532e-05/0.3549, allocations: 19.72 kB / 453.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.061e-05/0.3549, allocations: 25.77 kB / 453.9 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.3549, allocations: 0 / 453.9 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-06/0.355, allocations: 0 / 453.9 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.355, allocations: 4 kB / 453.9 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002367/0.3552, allocations: 261.9 kB / 454.1 MB, free: 9.887 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3552, allocations: 0 / 454.1 MB, free: 9.887 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.3554, allocations: 27.98 kB / 454.2 MB, free: 9.859 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001209/0.3555, allocations: 48.83 kB / 454.2 MB, free: 9.809 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.3555, allocations: 0 / 454.2 MB, free: 9.809 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001348/0.3569, allocations: 1.531 MB / 455.7 MB, free: 8.164 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3569, allocations: 0 / 455.7 MB, free: 8.164 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005012/0.3574, allocations: 246.8 kB / 456 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006191/0.358, allocations: 0.6256 MB / 456.6 MB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.441e-05/0.3581, allocations: 96.83 kB / 456.7 MB, free: 7.141 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.232e-05/0.3582, allocations: 3.984 kB / 456.7 MB, free: 7.137 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002706/0.3585, allocations: 39.97 kB / 456.8 MB, free: 7.098 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.841e-05/0.3585, allocations: 19.97 kB / 456.8 MB, free: 7.078 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.3586, allocations: 14.16 kB / 456.8 MB, free: 7.066 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001403/0.3587, allocations: 164.5 kB / 456.9 MB, free: 6.91 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001554/0.3603, allocations: 119.6 kB / 457.1 MB, free: 6.793 MB / 346.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.0001252/0.3604, allocations: 103.2 kB / 457.2 MB, free: 6.684 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005931/0.361, allocations: 394.6 kB / 457.5 MB, free: 6.277 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.361, allocations: 0 / 457.5 MB, free: 6.277 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002149/0.3612, allocations: 165.8 kB / 457.7 MB, free: 6.105 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002332/0.3615, allocations: 41.12 kB / 457.8 MB, free: 6.066 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.3641, allocations: 0.833 MB / 458.6 MB, free: 5.211 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003297/0.3644, allocations: 0.7746 MB / 459.4 MB, free: 4.41 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3644, allocations: 0 / 459.4 MB, free: 4.41 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat does not exist to compare? outputFormat=mat