Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001211/0.001211, allocations: 195.2 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 225.5 MB / 234.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008223/0.0008224, allocations: 86.52 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.067e-06/9.077e-06, allocations: 4 kB / 343.2 MB, free: 8.711 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09761/0.09764, allocations: 51.47 MB / 394.6 MB, free: 5.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.263/0.3606, allocations: 81.7 MB / 476.3 MB, free: 10.94 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002084/0.3609, allocations: 80.55 kB / 476.4 MB, free: 10.91 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01624/0.3771, allocations: 6.027 MB / 482.4 MB, free: 6.434 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.932e-05/0.3772, allocations: 8.219 kB / 482.4 MB, free: 6.43 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0009628/0.3782, allocations: 0.6216 MB / 483.1 MB, free: 5.781 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.3782, allocations: 8.031 kB / 483.1 MB, free: 5.773 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.497e-05/0.3783, allocations: 31.62 kB / 483.1 MB, free: 5.742 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003865/0.3787, allocations: 284.2 kB / 483.4 MB, free: 5.453 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.3788, allocations: 11.38 kB / 483.4 MB, free: 5.445 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.153e-05/0.3788, allocations: 15.94 kB / 483.4 MB, free: 5.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003243/0.3791, allocations: 164.4 kB / 483.6 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003649/0.3795, allocations: 238.3 kB / 483.8 MB, free: 5.152 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.3795, allocations: 4 kB / 483.8 MB, free: 5.148 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.736e-05/0.3796, allocations: 3.562 kB / 483.8 MB, free: 5.148 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.3796, allocations: 4 kB / 483.8 MB, free: 5.145 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001731/0.3813, allocations: 1.168 MB / 485 MB, free: 4.078 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002421/0.3816, allocations: 100.2 kB / 485.1 MB, free: 4 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.573e-05/0.3817, allocations: 44.36 kB / 485.1 MB, free: 3.969 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.3817, allocations: 0 / 485.1 MB, free: 3.969 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001263/0.3818, allocations: 100.7 kB / 485.2 MB, free: 3.871 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.3818, allocations: 192 / 485.2 MB, free: 3.871 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003369/0.3822, allocations: 137.6 kB / 485.3 MB, free: 3.754 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.3822, allocations: 85.05 kB / 485.4 MB, free: 3.652 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/0.3824, allocations: 239 kB / 485.7 MB, free: 3.461 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.3825, allocations: 25.7 kB / 485.7 MB, free: 3.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.307e-05/0.3826, allocations: 196.8 kB / 485.9 MB, free: 3.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.3826, allocations: 31.55 kB / 485.9 MB, free: 3.223 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.226e-05/0.3826, allocations: 0 / 485.9 MB, free: 3.223 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.762e-05/0.3827, allocations: 333.5 kB / 486.2 MB, free: 2.898 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.086e-05/0.3828, allocations: 53.67 kB / 486.3 MB, free: 2.867 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001306/0.3829, allocations: 155 kB / 486.4 MB, free: 2.691 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/0.383, allocations: 63.75 kB / 486.5 MB, free: 2.648 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.383, allocations: 4 kB / 486.5 MB, free: 2.645 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003668/0.3834, allocations: 240.3 kB / 486.7 MB, free: 2.449 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.3834, allocations: 10.03 kB / 486.8 MB, free: 2.441 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.3834, allocations: 4 kB / 486.8 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001578/0.3836, allocations: 35.92 kB / 486.8 MB, free: 2.402 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002757/0.3839, allocations: 71.98 kB / 486.9 MB, free: 2.332 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007462/0.3846, allocations: 1.244 MB / 488.1 MB, free: 1.016 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003381/0.385, allocations: 57.84 kB / 488.2 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.386e-05/0.385, allocations: 19.36 kB / 488.2 MB, free: 0.9453 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 8.183e-05/0.3851, allocations: 120.8 kB / 488.3 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.186e-05/0.3852, allocations: 23.72 kB / 488.3 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.405e-05/0.3852, allocations: 23.39 kB / 488.3 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.3852, allocations: 7.938 kB / 488.4 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3852, allocations: 0 / 488.4 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.3852, allocations: 0 / 488.4 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003182/0.3856, allocations: 406.1 kB / 488.8 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.3856, allocations: 32 / 488.8 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000184/0.3858, allocations: 43.22 kB / 488.8 MB, free: 360 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.236e-05/0.3859, allocations: 39.94 kB / 488.8 MB, free: 320 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.3859, allocations: 0 / 488.8 MB, free: 320 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008965/0.3868, allocations: 1.242 MB / 490.1 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3868, allocations: 1.938 kB / 490.1 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002831/0.3871, allocations: 187.2 kB / 490.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.364e-05/0.3872, allocations: 99.62 kB / 490.4 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.37e-05/0.3872, allocations: 4 kB / 490.4 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002542/0.3875, allocations: 35.97 kB / 490.4 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.529e-05/0.3876, allocations: 15.09 kB / 490.4 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/0.3876, allocations: 4 kB / 490.4 MB, free: 14.65 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001718/0.3878, allocations: 182.9 kB / 490.6 MB, free: 14.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003638/0.3881, allocations: 75.69 kB / 490.7 MB, free: 14.44 MB / 362.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 (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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001936/0.3883, allocations: 111.2 kB / 490.8 MB, free: 14.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004699/0.3888, allocations: 257.1 kB / 491 MB, free: 14.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3888, allocations: 0 / 491 MB, free: 14.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002277/0.3891, allocations: 157.5 kB / 491.2 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.3894, allocations: 41.78 kB / 491.2 MB, free: 13.92 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006937/0.3901, allocations: 285.3 kB / 491.5 MB, free: 13.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004037/0.3905, allocations: 0.7893 MB / 492.3 MB, free: 12.83 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3905, allocations: 4 kB / 492.3 MB, free: 12.82 MB / 362.7 MB Notification: Performance of Templates: time 0.00619/0.3967, allocations: 2.712 MB / 495 MB, free: 10.19 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches