Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1") [: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 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 183 kB / 8.137 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.235/1.235, allocations: 221.4 MB / 229.9 MB, free: 3.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008941/0.0008941, allocations: 100.5 kB / 280.8 MB, free: 1.293 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.332e-06/6.372e-06, allocations: 0 / 336.5 MB, free: 9.562 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.2068, allocations: 50.39 MB / 386.9 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08273/0.2896, allocations: 75.73 MB / 462.6 MB, free: 11.1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002069/0.2899, allocations: 79.89 kB / 462.7 MB, free: 11.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.002603/0.2925, allocations: 0.8367 MB / 463.5 MB, free: 10.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.186e-06/0.2925, allocations: 0 / 463.5 MB, free: 10.2 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0002889/0.2928, allocations: 344 kB / 463.9 MB, free: 9.82 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.2928, allocations: 8.031 kB / 463.9 MB, free: 9.812 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.283e-05/0.2929, allocations: 8.406 kB / 463.9 MB, free: 9.805 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.2931, allocations: 187.9 kB / 464.1 MB, free: 9.582 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.724e-06/0.2931, allocations: 0 / 464.1 MB, free: 9.582 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.204e-05/0.2931, allocations: 4 kB / 464.1 MB, free: 9.578 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.522e-05/0.2932, allocations: 23.94 kB / 464.1 MB, free: 9.555 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001804/0.2933, allocations: 102.9 kB / 464.2 MB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.2934, allocations: 3.984 kB / 464.2 MB, free: 9.434 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.2934, allocations: 0 / 464.2 MB, free: 9.434 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.2934, allocations: 3.984 kB / 464.2 MB, free: 9.43 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002858/0.2937, allocations: 242.3 kB / 464.5 MB, free: 9.152 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.2938, allocations: 130.2 kB / 464.6 MB, free: 8.988 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.631e-05/0.2939, allocations: 25.78 kB / 464.6 MB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/0.2939, allocations: 0 / 464.6 MB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.294, allocations: 38.66 kB / 464.6 MB, free: 8.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 8.22e-07/0.294, allocations: 0 / 464.6 MB, free: 8.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001441/0.2941, allocations: 53.53 kB / 464.7 MB, free: 8.852 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.951e-05/0.2942, allocations: 77.11 kB / 464.8 MB, free: 8.758 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.61e-05/0.2943, allocations: 130.3 kB / 464.9 MB, free: 8.625 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.077e-05/0.2943, allocations: 25.7 kB / 464.9 MB, free: 8.594 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.239e-05/0.2943, allocations: 84.14 kB / 465 MB, free: 8.508 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.935e-06/0.2943, allocations: 4 kB / 465 MB, free: 8.504 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.335e-06/0.2943, allocations: 0 / 465 MB, free: 8.504 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.257e-05/0.2944, allocations: 318.7 kB / 465.3 MB, free: 8.184 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.3e-05/0.2945, allocations: 11.94 kB / 465.3 MB, free: 8.172 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.323e-05/0.2945, allocations: 28.56 kB / 465.4 MB, free: 8.133 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.696e-05/0.2945, allocations: 8 kB / 465.4 MB, free: 8.125 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2945, allocations: 0 / 465.4 MB, free: 8.125 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.162e-05/0.2946, allocations: 51.44 kB / 465.4 MB, free: 8.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.2946, allocations: 11.28 kB / 465.4 MB, free: 8.062 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.2946, allocations: 128 / 465.4 MB, free: 8.062 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.2946, allocations: 7.906 kB / 465.4 MB, free: 8.055 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.149e-05/0.2947, allocations: 8 kB / 465.4 MB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.2947, allocations: 4 kB / 465.4 MB, free: 8.043 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.675e-05/0.2948, allocations: 7.984 kB / 465.5 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-06/0.2948, allocations: 4 kB / 465.5 MB, free: 8.031 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (sample1.u,sample1.y,assignClock.y,assignClock.u) * 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 5.999e-05/0.2948, allocations: 107.7 kB / 465.6 MB, free: 7.922 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.533e-05/0.2949, allocations: 40.05 kB / 465.6 MB, free: 7.879 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.399e-05/0.295, allocations: 24.05 kB / 465.6 MB, free: 7.852 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.295, allocations: 0 / 465.6 MB, free: 7.852 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.295, allocations: 0 / 465.6 MB, free: 7.852 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.295, allocations: 3.906 kB / 465.6 MB, free: 7.848 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001311/0.2951, allocations: 146.2 kB / 465.8 MB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.2951, allocations: 0 / 465.8 MB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.322e-05/0.2952, allocations: 12 kB / 465.8 MB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2952, allocations: 1 kB / 465.8 MB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.2952, allocations: 0 / 465.8 MB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.2952, allocations: 4 kB / 465.8 MB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.2952, allocations: 4 kB / 465.8 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001121/0.2953, allocations: 165.9 kB / 466 MB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.003e-05/0.2954, allocations: 92.94 kB / 466 MB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.373e-05/0.2954, allocations: 0 / 466 MB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.104e-05/0.2955, allocations: 12.67 kB / 466.1 MB, free: 7.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.654e-05/0.2955, allocations: 4.172 kB / 466.1 MB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-06/0.2955, allocations: 0 / 466.1 MB, free: 7.336 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.796e-05/0.2956, allocations: 103.3 kB / 466.2 MB, free: 7.234 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002129/0.2958, allocations: 4 kB / 466.2 MB, free: 7.23 MB / 346.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: 4 (sample1.u,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 8.922e-05/0.2959, allocations: 95.25 kB / 466.3 MB, free: 7.129 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.747e-05/0.296, allocations: 19.98 kB / 466.3 MB, free: 7.109 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.296, allocations: 256 / 466.3 MB, free: 7.109 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.022e-05/0.296, allocations: 7.938 kB / 466.3 MB, free: 7.102 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002167/0.2962, allocations: 27.58 kB / 466.3 MB, free: 7.078 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002168/0.2965, allocations: 96.61 kB / 466.4 MB, free: 6.953 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002567/0.2967, allocations: 0.7032 MB / 467.1 MB, free: 6.227 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2967, allocations: 0 / 467.1 MB, free: 6.227 MB / 346.7 MB Notification: Performance of Templates: time 0.002015/0.2988, allocations: 490.6 kB / 467.6 MB, free: 5.762 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches