Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001806/0.001806, allocations: 199.2 kB / 8.538 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.278/1.278, allocations: 225.5 MB / 234.4 MB, free: 3.418 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008596/0.0008597, allocations: 96.78 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2036/0.2036, allocations: 45.13 MB / 383.3 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.713e-06/6.903e-06, allocations: 0 / 452.6 MB, free: 76.21 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1151, allocations: 63.24 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3294/0.4445, allocations: 86.18 MB / 0.5879 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/0.4449, allocations: 55.16 kB / 0.588 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.002229/0.4471, allocations: 0.683 MB / 0.5886 GB, free: 156 kB / 378.7 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.4471, allocations: 0 / 0.5886 GB, free: 156 kB / 378.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.0003051/0.4475, allocations: 340.3 kB / 0.589 GB, free: 15.78 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.4475, allocations: 8.031 kB / 0.589 GB, free: 15.77 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.492e-05/0.4475, allocations: 11.89 kB / 0.589 GB, free: 15.76 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001956/0.4477, allocations: 174.9 kB / 0.5892 GB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.374e-06/0.4478, allocations: 0 / 0.5892 GB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.195e-05/0.4478, allocations: 6.938 kB / 0.5892 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.242e-05/0.4479, allocations: 15.81 kB / 0.5892 GB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.3e-05/0.448, allocations: 40.88 kB / 0.5892 GB, free: 15.49 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.448, allocations: 0 / 0.5892 GB, free: 15.49 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.448, allocations: 4 kB / 0.5892 GB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.448, allocations: 3.984 kB / 0.5892 GB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004428/0.4484, allocations: 259 kB / 0.5895 GB, free: 15.2 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.945e-05/0.4485, allocations: 30.39 kB / 0.5895 GB, free: 15.17 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.965e-05/0.4485, allocations: 4.859 kB / 0.5895 GB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.096e-05/0.4486, allocations: 2.625 kB / 0.5895 GB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.323e-05/0.4486, allocations: 54.78 kB / 0.5896 GB, free: 15.1 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 1.402e-06/0.4486, allocations: 0 / 0.5896 GB, free: 15.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.000136/0.4488, allocations: 37.52 kB / 0.5896 GB, free: 15.06 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.4488, allocations: 55.41 kB / 0.5896 GB, free: 14.99 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.576e-05/0.4489, allocations: 104.8 kB / 0.5897 GB, free: 14.89 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.4489, allocations: 25.7 kB / 0.5898 GB, free: 14.86 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.767e-05/0.449, allocations: 88.08 kB / 0.5899 GB, free: 14.77 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.648e-05/0.449, allocations: 11.02 kB / 0.5899 GB, free: 14.76 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-06/0.449, allocations: 0 / 0.5899 GB, free: 14.76 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.4491, allocations: 318.8 kB / 0.5902 GB, free: 14.44 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.316e-05/0.4491, allocations: 3.812 kB / 0.5902 GB, free: 14.44 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.157e-05/0.4492, allocations: 17.72 kB / 0.5902 GB, free: 14.41 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.981e-05/0.4492, allocations: 11.12 kB / 0.5902 GB, free: 14.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.4492, allocations: 3.984 kB / 0.5902 GB, free: 14.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001023/0.4493, allocations: 45.59 kB / 0.5902 GB, free: 14.36 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.4493, allocations: 4 kB / 0.5903 GB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.4493, allocations: 4 kB / 0.5903 GB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.4494, allocations: 7.938 kB / 0.5903 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.38e-05/0.4494, allocations: 7.984 kB / 0.5903 GB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.4494, allocations: 0.625 kB / 0.5903 GB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.157e-05/0.4495, allocations: 8.031 kB / 0.5903 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-06/0.4495, allocations: 3.938 kB / 0.5903 GB, free: 14.32 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.608e-05/0.4495, allocations: 105 kB / 0.5904 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.01e-05/0.4496, allocations: 4.125 kB / 0.5904 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.938e-05/0.4496, allocations: 6.438 kB / 0.5904 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.4496, allocations: 3.938 kB / 0.5904 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.4496, allocations: 4 kB / 0.5904 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.4496, allocations: 0 / 0.5904 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000248/0.4499, allocations: 277 kB / 0.5907 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4499, allocations: 0 / 0.5907 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.338e-05/0.4499, allocations: 11.88 kB / 0.5907 GB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.4499, allocations: 0 / 0.5907 GB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.4499, allocations: 0 / 0.5907 GB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.4499, allocations: 0 / 0.5907 GB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.45, allocations: 0 / 0.5907 GB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001359/0.4501, allocations: 149.5 kB / 0.5908 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.532e-05/0.4501, allocations: 81.02 kB / 0.5909 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.4502, allocations: 0 / 0.5909 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.776e-05/0.4502, allocations: 8.031 kB / 0.5909 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.879e-05/0.4503, allocations: 3.375 kB / 0.5909 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-06/0.4503, allocations: 0 / 0.5909 GB, free: 13.61 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.22e-05/0.4503, allocations: 87.58 kB / 0.591 GB, free: 13.52 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000226/0.4506, allocations: 4 kB / 0.591 GB, free: 13.52 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 0.0001259/0.4507, allocations: 102.7 kB / 0.5911 GB, free: 13.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.334e-05/0.4508, allocations: 19.81 kB / 0.5911 GB, free: 13.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.4508, allocations: 0 / 0.5911 GB, free: 13.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.444e-05/0.4508, allocations: 4 kB / 0.5911 GB, free: 13.39 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002216/0.451, allocations: 7.906 kB / 0.5911 GB, free: 13.39 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002662/0.4513, allocations: 91.67 kB / 0.5912 GB, free: 13.28 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002817/0.4516, allocations: 0.6993 MB / 0.5919 GB, free: 12.55 MB / 394.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4516, allocations: 4.062 kB / 0.5919 GB, free: 12.55 MB / 394.7 MB Notification: Performance of Templates: time 0.002431/0.454, allocations: 434.3 kB / 0.5923 GB, free: 12.14 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches