Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [: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.001675/0.001675, allocations: 175.2 kB / 8.151 MB, free: 2.215 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.649/1.649, allocations: 205.2 MB / 213.7 MB, free: 13.94 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.001263/0.001263, allocations: 94.64 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.196e-05/1.211e-05, allocations: 4 kB / 314.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2604, allocations: 47.56 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1371/0.3975, allocations: 79.32 MB / 441.2 MB, free: 6.746 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000376/0.398, allocations: 75.95 kB / 441.2 MB, free: 6.672 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.03046/0.4284, allocations: 5.852 MB / 447.1 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.598e-05/0.4285, allocations: 5.312 kB / 447.1 MB, free: 0.8516 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001805/0.4303, allocations: 0.6126 MB / 447.7 MB, free: 196 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.4304, allocations: 8.031 kB / 447.7 MB, free: 188 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001677/0.4306, allocations: 39.53 kB / 447.8 MB, free: 148 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006455/0.4312, allocations: 289.4 kB / 448 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.4313, allocations: 8 kB / 448 MB, free: 15.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.39e-05/0.4314, allocations: 23.94 kB / 448.1 MB, free: 15.8 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006471/0.432, allocations: 181 kB / 448.2 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006031/0.4326, allocations: 195.1 kB / 448.4 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.4327, allocations: 3.906 kB / 448.4 MB, free: 15.42 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.146e-05/0.4327, allocations: 4 kB / 448.4 MB, free: 15.42 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.4328, allocations: 8 kB / 448.5 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003301/0.4361, allocations: 1.076 MB / 449.5 MB, free: 14.26 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005983/0.4367, allocations: 114.7 kB / 449.6 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.4369, allocations: 45.03 kB / 449.7 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/0.437, allocations: 7.984 kB / 449.7 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002393/0.4372, allocations: 97.11 kB / 449.8 MB, free: 13.97 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 2.705e-06/0.4372, allocations: 3.469 kB / 449.8 MB, free: 13.97 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.000585/0.4378, allocations: 142.2 kB / 449.9 MB, free: 13.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.057e-05/0.4379, allocations: 89.03 kB / 450 MB, free: 13.71 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004333/0.4383, allocations: 233 kB / 450.2 MB, free: 13.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.253e-05/0.4384, allocations: 29.7 kB / 450.3 MB, free: 13.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/0.4386, allocations: 249.8 kB / 450.5 MB, free: 13.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.921e-05/0.4386, allocations: 31.55 kB / 450.5 MB, free: 13.17 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.998e-05/0.4387, allocations: 0 / 450.5 MB, free: 13.17 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.4388, allocations: 326.7 kB / 450.9 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001879/0.439, allocations: 56.23 kB / 450.9 MB, free: 12.79 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002748/0.4393, allocations: 153.9 kB / 451.1 MB, free: 12.59 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002139/0.4395, allocations: 67.91 kB / 451.1 MB, free: 12.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.4396, allocations: 0 / 451.1 MB, free: 12.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007459/0.4403, allocations: 219.5 kB / 451.4 MB, free: 12.3 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006582/0.441, allocations: 1.398 MB / 452.8 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.441, allocations: 4 kB / 452.8 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002366/0.4413, allocations: 24.84 kB / 452.8 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005863/0.4419, allocations: 71.89 kB / 452.8 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001542/0.4435, allocations: 1.249 MB / 454.1 MB, free: 9.324 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005588/0.4441, allocations: 47.97 kB / 454.1 MB, free: 9.277 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.288e-05/0.4441, allocations: 12 kB / 454.2 MB, free: 9.266 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.4441, allocations: 4 kB / 454.2 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006393/0.4448, allocations: 188.6 kB / 454.3 MB, free: 9.074 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.4448, allocations: 4 kB / 454.3 MB, free: 9.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001414/0.445, allocations: 24.84 kB / 454.4 MB, free: 9.043 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004979/0.4455, allocations: 72.36 kB / 454.4 MB, free: 8.973 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001376/0.4469, allocations: 1.232 MB / 455.7 MB, free: 7.629 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005167/0.4475, allocations: 43.97 kB / 455.7 MB, free: 7.586 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.281e-05/0.4475, allocations: 8 kB / 455.7 MB, free: 7.578 MB / 346.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 0.0001418/0.4477, allocations: 45.58 kB / 455.8 MB, free: 7.527 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.4478, allocations: 23.7 kB / 455.8 MB, free: 7.504 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.34e-05/0.4479, allocations: 23.59 kB / 455.8 MB, free: 7.484 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.4479, allocations: 7.938 kB / 455.8 MB, free: 7.477 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/0.4479, allocations: 7.906 kB / 455.8 MB, free: 7.469 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.4479, allocations: 3.984 kB / 455.8 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007069/0.4487, allocations: 407.8 kB / 456.2 MB, free: 7.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.4487, allocations: 0 / 456.2 MB, free: 7.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003829/0.4491, allocations: 43.94 kB / 456.3 MB, free: 6.977 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002109/0.4493, allocations: 24.84 kB / 456.3 MB, free: 6.949 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.895e-05/0.4494, allocations: 7.906 kB / 456.3 MB, free: 6.941 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001416/0.4508, allocations: 1.248 MB / 457.6 MB, free: 5.578 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.007e-06/0.4508, allocations: 3.906 kB / 457.6 MB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005097/0.4514, allocations: 176.2 kB / 457.7 MB, free: 5.371 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.4515, allocations: 104.8 kB / 457.8 MB, free: 5.25 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.681e-05/0.4516, allocations: 4.094 kB / 457.8 MB, free: 5.246 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004557/0.452, allocations: 35.97 kB / 457.9 MB, free: 5.211 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.4522, allocations: 27.88 kB / 457.9 MB, free: 5.184 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.796e-05/0.4522, allocations: 0 / 457.9 MB, free: 5.184 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.000306/0.4525, allocations: 185.2 kB / 458.1 MB, free: 5.004 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008104/0.4533, allocations: 124.1 kB / 458.2 MB, free: 4.883 MB / 346.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.0002147/0.4536, allocations: 103.2 kB / 458.3 MB, free: 4.77 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.4549, allocations: 494.7 kB / 458.8 MB, free: 4.254 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.4549, allocations: 1.219 kB / 458.8 MB, free: 4.254 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003905/0.4553, allocations: 159.5 kB / 458.9 MB, free: 4.09 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004827/0.4558, allocations: 41.95 kB / 459 MB, free: 4.051 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001187/0.457, allocations: 307.5 kB / 459.3 MB, free: 3.707 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005618/0.4576, allocations: 0.7942 MB / 460.1 MB, free: 2.891 MB / 346.7 MB Notification: Performance of SimCode: time 9.82e-07/0.4577, allocations: 0 / 460.1 MB, free: 2.891 MB / 346.7 MB Notification: Performance of Templates: time 0.01064/0.4683, allocations: 4.397 MB / 464.5 MB, free: 14.51 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches