Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") [: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.00108/0.00108, allocations: 190.5 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 225.5 MB / 234.4 MB, free: 3.43 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009343/0.0009344, allocations: 94.61 kB / 286.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.201/0.201, allocations: 45.14 MB / 383.3 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 9.097e-06/9.137e-06, allocations: 4 kB / 452.6 MB, free: 76.22 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1077, allocations: 63.24 MB / 0.5038 GB, free: 13.06 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3452/0.4529, allocations: 87.7 MB / 0.5894 GB, free: 15.31 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.4531, allocations: 58.47 kB / 0.5895 GB, free: 15.29 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.008824/0.4619, allocations: 2.691 MB / 0.5921 GB, free: 13.03 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.462, allocations: 8 kB / 0.5921 GB, free: 13.02 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006104/0.4626, allocations: 428.9 kB / 0.5925 GB, free: 12.57 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.4627, allocations: 8.031 kB / 0.5925 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.041e-05/0.4627, allocations: 19.22 kB / 0.5925 GB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003176/0.463, allocations: 208.8 kB / 0.5927 GB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.4631, allocations: 4 kB / 0.5927 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.207e-05/0.4631, allocations: 7.906 kB / 0.5927 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.761e-05/0.4632, allocations: 34.48 kB / 0.5928 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001223/0.4633, allocations: 63.94 kB / 0.5928 GB, free: 12.21 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.4634, allocations: 0 / 0.5928 GB, free: 12.21 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.4634, allocations: 0 / 0.5928 GB, free: 12.21 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.4634, allocations: 4 kB / 0.5928 GB, free: 12.21 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005796/0.464, allocations: 354.2 kB / 0.5932 GB, free: 11.86 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001021/0.4641, allocations: 53.7 kB / 0.5932 GB, free: 11.81 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.874e-05/0.4641, allocations: 16.45 kB / 0.5932 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.4642, allocations: 0 / 0.5932 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.776e-05/0.4643, allocations: 66.09 kB / 0.5933 GB, free: 11.73 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.4643, allocations: 4 kB / 0.5933 GB, free: 11.72 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001813/0.4645, allocations: 68.88 kB / 0.5934 GB, free: 11.66 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.128e-05/0.4645, allocations: 55.41 kB / 0.5934 GB, free: 11.59 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.4646, allocations: 120.1 kB / 0.5935 GB, free: 11.47 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.4646, allocations: 25.7 kB / 0.5936 GB, free: 11.44 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.353e-05/0.4647, allocations: 99.77 kB / 0.5937 GB, free: 11.34 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.677e-05/0.4647, allocations: 15 kB / 0.5937 GB, free: 11.33 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.801e-06/0.4647, allocations: 0 / 0.5937 GB, free: 11.33 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.4649, allocations: 325.6 kB / 0.594 GB, free: 11 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.486e-05/0.4649, allocations: 17.88 kB / 0.594 GB, free: 10.99 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.528e-05/0.465, allocations: 32.03 kB / 0.594 GB, free: 10.96 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.52e-05/0.465, allocations: 15.48 kB / 0.5941 GB, free: 10.95 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.465, allocations: 0 / 0.5941 GB, free: 10.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001201/0.4652, allocations: 75.53 kB / 0.5941 GB, free: 10.88 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.4652, allocations: 8 kB / 0.5941 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.4652, allocations: 4.031 kB / 0.5941 GB, free: 10.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.4652, allocations: 0 / 0.5941 GB, free: 10.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.4653, allocations: 27.92 kB / 0.5942 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.4653, allocations: 0.625 kB / 0.5942 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.4655, allocations: 19.98 kB / 0.5942 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.046e-06/0.4655, allocations: 7.938 kB / 0.5942 GB, free: 10.82 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: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u,change.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 8.299e-05/0.4656, allocations: 112.3 kB / 0.5943 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.53e-05/0.4656, allocations: 7.906 kB / 0.5943 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.538e-05/0.4656, allocations: 11.38 kB / 0.5943 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.4656, allocations: 0 / 0.5943 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4656, allocations: 3.984 kB / 0.5943 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.4657, allocations: 0 / 0.5943 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003432/0.466, allocations: 331 kB / 0.5946 GB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.466, allocations: 0 / 0.5946 GB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.4661, allocations: 15.98 kB / 0.5946 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.4661, allocations: 288 / 0.5947 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.4662, allocations: 4 kB / 0.5947 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4662, allocations: 80 / 0.5947 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.4662, allocations: 7.922 kB / 0.5947 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002039/0.4664, allocations: 195.9 kB / 0.5948 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.945e-05/0.4665, allocations: 89 kB / 0.5949 GB, free: 10.02 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.4665, allocations: 0 / 0.5949 GB, free: 10.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.4666, allocations: 28.05 kB / 0.595 GB, free: 9.992 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.426e-05/0.4667, allocations: 15.34 kB / 0.595 GB, free: 9.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.4667, allocations: 4 kB / 0.595 GB, free: 9.977 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.669e-05/0.4668, allocations: 100.7 kB / 0.5951 GB, free: 9.887 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002468/0.467, allocations: 15.91 kB / 0.5951 GB, free: 9.871 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: 5 (change.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 0.000108/0.4671, allocations: 95.25 kB / 0.5952 GB, free: 9.766 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000113/0.4673, allocations: 49.56 kB / 0.5952 GB, free: 9.73 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4673, allocations: 0 / 0.5952 GB, free: 9.73 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.89e-05/0.4673, allocations: 22.56 kB / 0.5952 GB, free: 9.715 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002398/0.4676, allocations: 18.52 kB / 0.5953 GB, free: 9.703 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003799/0.468, allocations: 130.1 kB / 0.5954 GB, free: 9.562 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003489/0.4683, allocations: 0.7193 MB / 0.5961 GB, free: 8.816 MB / 394.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4683, allocations: 0 / 0.5961 GB, free: 8.816 MB / 394.7 MB Notification: Performance of Templates: time 0.003097/0.4714, allocations: 1.049 MB / 0.5971 GB, free: 7.781 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches