Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") [: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.0009657/0.0009657, allocations: 183.4 kB / 7.802 MB, free: 2.445 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.02/1.02, allocations: 205.2 MB / 213.4 MB, free: 13.92 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.0008493/0.0008494, allocations: 92.28 kB / 261.4 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1491/0.1491, allocations: 43.49 MB / 352.8 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.95e-06/4.97e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1953/0.1954, allocations: 58.84 MB / 476.5 MB, free: 5.227 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09214/0.2875, allocations: 84.07 MB / 0.5475 GB, free: 14.87 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001542/0.2877, allocations: 59.25 kB / 0.5475 GB, free: 14.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.002104/0.2899, allocations: 0.6765 MB / 0.5482 GB, free: 14.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.2899, allocations: 0 / 0.5482 GB, free: 14.14 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0002528/0.2901, allocations: 330.3 kB / 0.5485 GB, free: 13.77 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.894e-05/0.2902, allocations: 8.031 kB / 0.5485 GB, free: 13.76 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.068e-05/0.2902, allocations: 11.91 kB / 0.5485 GB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001479/0.2904, allocations: 182.9 kB / 0.5487 GB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.574e-06/0.2904, allocations: 4 kB / 0.5487 GB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.2904, allocations: 0 / 0.5487 GB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.625e-05/0.2905, allocations: 16 kB / 0.5487 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.939e-05/0.2905, allocations: 45.69 kB / 0.5488 GB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.801e-06/0.2906, allocations: 0 / 0.5488 GB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.338e-06/0.2906, allocations: 0 / 0.5488 GB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.2906, allocations: 3.984 kB / 0.5488 GB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003803/0.291, allocations: 269.2 kB / 0.549 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.815e-05/0.291, allocations: 18.58 kB / 0.549 GB, free: 13.13 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.822e-05/0.291, allocations: 12.92 kB / 0.5491 GB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.085e-06/0.2911, allocations: 0 / 0.5491 GB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.307e-05/0.2911, allocations: 51.41 kB / 0.5491 GB, free: 13.05 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2911, allocations: 3.938 kB / 0.5491 GB, free: 13.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 9.416e-05/0.2912, allocations: 33.7 kB / 0.5491 GB, free: 13.01 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.899e-05/0.2913, allocations: 55.41 kB / 0.5492 GB, free: 12.94 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.626e-05/0.2913, allocations: 100.9 kB / 0.5493 GB, free: 12.84 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.2913, allocations: 29.7 kB / 0.5493 GB, free: 12.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.735e-05/0.2914, allocations: 88.08 kB / 0.5494 GB, free: 12.71 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.284e-05/0.2914, allocations: 3.906 kB / 0.5494 GB, free: 12.71 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.224e-06/0.2914, allocations: 3.5 kB / 0.5494 GB, free: 12.71 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.457e-05/0.2915, allocations: 330.7 kB / 0.5497 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.204e-05/0.2915, allocations: 4 kB / 0.5497 GB, free: 12.37 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.307e-05/0.2916, allocations: 17.72 kB / 0.5497 GB, free: 12.35 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.535e-05/0.2916, allocations: 4 kB / 0.5498 GB, free: 12.34 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.2916, allocations: 0 / 0.5498 GB, free: 12.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.941e-05/0.2917, allocations: 49.62 kB / 0.5498 GB, free: 12.29 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.258e-06/0.2917, allocations: 4 kB / 0.5498 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-06/0.2917, allocations: 4.031 kB / 0.5498 GB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.2917, allocations: 7.906 kB / 0.5498 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.798e-05/0.2917, allocations: 0 / 0.5498 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.2917, allocations: 4 kB / 0.5498 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.751e-05/0.2918, allocations: 3.984 kB / 0.5498 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.2918, allocations: 4 kB / 0.5498 GB, free: 12.26 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.143e-05/0.2918, allocations: 106.9 kB / 0.5499 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.137e-05/0.2919, allocations: 3.906 kB / 0.5499 GB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.482e-05/0.2919, allocations: 15.94 kB / 0.5499 GB, free: 12.13 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.2919, allocations: 7.938 kB / 0.55 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.2919, allocations: 0 / 0.55 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.2919, allocations: 0 / 0.55 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002279/0.2921, allocations: 271.1 kB / 0.5502 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.2922, allocations: 0 / 0.5502 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.131e-05/0.2922, allocations: 4 kB / 0.5502 GB, free: 11.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2922, allocations: 0 / 0.5502 GB, free: 11.81 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.2922, allocations: 240 / 0.5502 GB, free: 11.81 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.2922, allocations: 4 kB / 0.5502 GB, free: 11.81 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2922, allocations: 0 / 0.5502 GB, free: 11.81 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001237/0.2924, allocations: 155.4 kB / 0.5504 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.405e-05/0.2924, allocations: 85.02 kB / 0.5504 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.149e-05/0.2924, allocations: 0 / 0.5504 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.478e-05/0.2925, allocations: 0 / 0.5504 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.115e-05/0.2925, allocations: 4.031 kB / 0.5505 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.2925, allocations: 8.219 kB / 0.5505 GB, free: 11.53 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.222e-05/0.2926, allocations: 91.64 kB / 0.5505 GB, free: 11.44 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001975/0.2928, allocations: 7.938 kB / 0.5506 GB, free: 11.43 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.369e-05/0.2929, allocations: 99.23 kB / 0.5506 GB, free: 11.32 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 5.476e-05/0.2929, allocations: 15.94 kB / 0.5507 GB, free: 11.31 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2929, allocations: 0 / 0.5507 GB, free: 11.31 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.29e-05/0.2929, allocations: 8 kB / 0.5507 GB, free: 11.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001825/0.2931, allocations: 15.84 kB / 0.5507 GB, free: 11.29 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000203/0.2933, allocations: 80.45 kB / 0.5508 GB, free: 11.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002453/0.2936, allocations: 0.7032 MB / 0.5515 GB, free: 10.45 MB / 394.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2936, allocations: 0 / 0.5515 GB, free: 10.45 MB / 394.7 MB Notification: Performance of Templates: time 0.001876/0.2955, allocations: 444.1 kB / 0.5519 GB, free: 10.02 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches