Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009845/0.0009846, allocations: 181.4 kB / 8.477 MB, free: 1.852 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.2/1.2, allocations: 205.2 MB / 214.1 MB, free: 5.148 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009308/0.0009307, allocations: 87.28 kB / 262.1 MB, free: 5.195 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.955e-06/8.225e-06, allocations: 0 / 315 MB, free: 41.36 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07302/0.07305, allocations: 47.58 MB / 362.6 MB, free: 9.82 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2343/0.3074, allocations: 79.3 MB / 441.8 MB, free: 10.81 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002061/0.3077, allocations: 78.59 kB / 441.9 MB, free: 10.81 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01613/0.3238, allocations: 5.865 MB / 447.8 MB, free: 9.773 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.528e-05/0.3239, allocations: 3.75 kB / 447.8 MB, free: 9.773 MB / 314.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.0008615/0.3247, allocations: 0.6174 MB / 448.4 MB, free: 9.266 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.3248, allocations: 7.75 kB / 448.4 MB, free: 9.266 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.584e-05/0.3248, allocations: 38.44 kB / 448.5 MB, free: 9.246 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002994/0.3251, allocations: 287.8 kB / 448.7 MB, free: 9 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.3252, allocations: 7.656 kB / 448.7 MB, free: 9 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.392e-05/0.3252, allocations: 15.53 kB / 448.8 MB, free: 9 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003081/0.3255, allocations: 175.4 kB / 448.9 MB, free: 8.996 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003101/0.3258, allocations: 203.8 kB / 449.1 MB, free: 8.93 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.3259, allocations: 3.906 kB / 449.1 MB, free: 8.926 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.51e-05/0.3259, allocations: 3.984 kB / 449.1 MB, free: 8.922 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.3259, allocations: 7.875 kB / 449.1 MB, free: 8.922 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/0.3274, allocations: 1.065 MB / 450.2 MB, free: 8.227 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002871/0.3277, allocations: 118.9 kB / 450.3 MB, free: 8.191 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.516e-05/0.3278, allocations: 44.7 kB / 450.4 MB, free: 8.184 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.3278, allocations: 3.984 kB / 450.4 MB, free: 8.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001199/0.328, allocations: 112.2 kB / 450.5 MB, free: 8.098 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.328, allocations: 0 / 450.5 MB, free: 8.098 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003224/0.3283, allocations: 139.1 kB / 450.6 MB, free: 8.031 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.241e-05/0.3283, allocations: 87.98 kB / 450.7 MB, free: 7.934 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001903/0.3285, allocations: 235.8 kB / 450.9 MB, free: 7.816 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.3286, allocations: 29.02 kB / 451 MB, free: 7.785 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.394e-05/0.3286, allocations: 188.9 kB / 451.1 MB, free: 7.625 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.241e-05/0.3287, allocations: 30.72 kB / 451.2 MB, free: 7.605 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.207e-05/0.3287, allocations: 7.875 kB / 451.2 MB, free: 7.602 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.977e-05/0.3287, allocations: 337.8 kB / 451.5 MB, free: 7.277 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.86e-05/0.3288, allocations: 49.31 kB / 451.6 MB, free: 7.273 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001121/0.3289, allocations: 159.7 kB / 451.7 MB, free: 7.133 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.737e-05/0.329, allocations: 64.61 kB / 451.8 MB, free: 7.121 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3291, allocations: 0 / 451.8 MB, free: 7.121 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003543/0.3294, allocations: 237.8 kB / 452 MB, free: 7.031 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001999/0.3296, allocations: 1.397 MB / 453.4 MB, free: 5.562 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.3296, allocations: 3.844 kB / 453.4 MB, free: 5.562 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001866/0.3298, allocations: 31.66 kB / 453.4 MB, free: 5.547 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002687/0.3301, allocations: 73.17 kB / 453.5 MB, free: 5.531 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007171/0.3308, allocations: 1.246 MB / 454.8 MB, free: 4.285 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000332/0.3312, allocations: 61.27 kB / 454.8 MB, free: 4.258 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.287e-05/0.3312, allocations: 7.688 kB / 454.8 MB, free: 4.258 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.27e-06/0.3312, allocations: 3.812 kB / 454.8 MB, free: 4.258 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002947/0.3315, allocations: 182.6 kB / 455 MB, free: 4.211 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.3315, allocations: 3.719 kB / 455 MB, free: 4.211 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.863e-05/0.3316, allocations: 31 kB / 455 MB, free: 4.195 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002256/0.3318, allocations: 64.88 kB / 455.1 MB, free: 4.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006617/0.3325, allocations: 1.241 MB / 456.4 MB, free: 18.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002754/0.3328, allocations: 38.88 kB / 456.4 MB, free: 18.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.741e-05/0.3328, allocations: 11.06 kB / 456.4 MB, free: 18.93 MB / 330.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 9.566e-05/0.3329, allocations: 121.4 kB / 456.5 MB, free: 18.81 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.222e-05/0.333, allocations: 27.39 kB / 456.5 MB, free: 18.8 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.475e-05/0.333, allocations: 20.84 kB / 456.6 MB, free: 18.79 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.333, allocations: 7.938 kB / 456.6 MB, free: 18.79 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.333, allocations: 7.828 kB / 456.6 MB, free: 18.78 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3331, allocations: 3.938 kB / 456.6 MB, free: 18.78 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000371/0.3334, allocations: 413 kB / 457 MB, free: 18.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3334, allocations: 0 / 457 MB, free: 18.44 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.3336, allocations: 42.91 kB / 457 MB, free: 18.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.099e-05/0.3337, allocations: 23.62 kB / 457.1 MB, free: 18.42 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.3337, allocations: 96 / 457.1 MB, free: 18.42 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008326/0.3346, allocations: 1.245 MB / 458.3 MB, free: 17.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3346, allocations: 0 / 458.3 MB, free: 17.18 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002337/0.3348, allocations: 182.2 kB / 458.5 MB, free: 17.06 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.96e-05/0.3349, allocations: 104.5 kB / 458.6 MB, free: 16.95 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.175e-05/0.335, allocations: 3.5 kB / 458.6 MB, free: 16.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.3352, allocations: 34.72 kB / 458.6 MB, free: 16.94 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.912e-05/0.3353, allocations: 19.09 kB / 458.6 MB, free: 16.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.3353, allocations: 3.844 kB / 458.6 MB, free: 16.93 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001545/0.3355, allocations: 181.8 kB / 458.8 MB, free: 16.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005066/0.336, allocations: 130.3 kB / 458.9 MB, free: 16.81 MB / 330.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.000176/0.3362, allocations: 115.3 kB / 459.1 MB, free: 16.71 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007246/0.3369, allocations: 498 kB / 459.5 MB, free: 16.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.3369, allocations: 4.25 kB / 459.5 MB, free: 16.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002295/0.3371, allocations: 163.9 kB / 459.7 MB, free: 16.3 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003037/0.3375, allocations: 30.12 kB / 459.7 MB, free: 16.29 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006686/0.3381, allocations: 297.5 kB / 460 MB, free: 16.12 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003528/0.3385, allocations: 0.7921 MB / 460.8 MB, free: 15.37 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3385, allocations: 4 kB / 460.8 MB, free: 15.36 MB / 330.7 MB Notification: Performance of Templates: time 0.006706/0.3452, allocations: 3.896 MB / 464.7 MB, free: 13.45 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches