Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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) 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(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001158/0.001159, allocations: 198.7 kB / 8.54 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 225.5 MB / 234.4 MB, free: 3.383 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008519/0.000852, allocations: 91.81 kB / 286.3 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.521e-06/5.611e-06, allocations: 0 / 343.1 MB, free: 8.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09628/0.0963, allocations: 51.48 MB / 394.6 MB, free: 5.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2516/0.3479, allocations: 76.52 MB / 471.1 MB, free: 14.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/0.3482, allocations: 76.94 kB / 471.2 MB, free: 14.71 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.002443/0.3506, allocations: 0.8324 MB / 472 MB, free: 14.28 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.3507, allocations: 4 kB / 472.1 MB, free: 14.28 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.0002536/0.3509, allocations: 346.4 kB / 472.4 MB, free: 13.92 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.351, allocations: 11.97 kB / 472.4 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.429e-05/0.351, allocations: 7.906 kB / 472.4 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001618/0.3512, allocations: 181.8 kB / 472.6 MB, free: 13.69 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.3512, allocations: 4 kB / 472.6 MB, free: 13.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.23e-05/0.3512, allocations: 0.75 kB / 472.6 MB, free: 13.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.637e-05/0.3513, allocations: 15.16 kB / 472.6 MB, free: 13.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002302/0.3515, allocations: 105.7 kB / 472.7 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.3515, allocations: 3.938 kB / 472.7 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-06/0.3516, allocations: 0 / 472.7 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.3516, allocations: 4.875 kB / 472.7 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002627/0.3518, allocations: 247.5 kB / 473 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001451/0.352, allocations: 129 kB / 473.1 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.283e-05/0.352, allocations: 26.34 kB / 473.1 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.086e-05/0.3521, allocations: 4 kB / 473.1 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.432e-05/0.3521, allocations: 30.56 kB / 473.1 MB, free: 13.08 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.252e-06/0.3521, allocations: 0 / 473.1 MB, free: 13.08 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001587/0.3523, allocations: 56.08 kB / 473.2 MB, free: 13.03 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.603e-05/0.3523, allocations: 81.05 kB / 473.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.559e-05/0.3524, allocations: 123.3 kB / 473.4 MB, free: 12.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.014e-05/0.3524, allocations: 29.73 kB / 473.4 MB, free: 12.78 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.711e-05/0.3525, allocations: 91.02 kB / 473.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.866e-06/0.3525, allocations: 3.906 kB / 473.5 MB, free: 12.69 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-06/0.3525, allocations: 0 / 473.5 MB, free: 12.69 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.24e-05/0.3526, allocations: 322.2 kB / 473.8 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.127e-05/0.3526, allocations: 0 / 473.8 MB, free: 12.38 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.96e-05/0.3526, allocations: 26.92 kB / 473.9 MB, free: 12.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.898e-05/0.3526, allocations: 11.47 kB / 473.9 MB, free: 12.33 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.3526, allocations: 0 / 473.9 MB, free: 12.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.431e-05/0.3527, allocations: 49.3 kB / 473.9 MB, free: 12.28 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.3527, allocations: 7.906 kB / 473.9 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.3527, allocations: 4 kB / 473.9 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.3527, allocations: 7.266 kB / 473.9 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.586e-05/0.3528, allocations: 17.38 kB / 474 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.3528, allocations: 0 / 474 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.48e-05/0.3529, allocations: 4 kB / 474 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.3529, allocations: 7.422 kB / 474 MB, free: 12.24 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 4.553e-05/0.3529, allocations: 101 kB / 474.1 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.461e-05/0.353, allocations: 45.17 kB / 474.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.509e-05/0.353, allocations: 15.14 kB / 474.1 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.3531, allocations: 4 kB / 474.1 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3531, allocations: 3.906 kB / 474.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.3531, allocations: 0 / 474.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.3532, allocations: 140.9 kB / 474.3 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.3532, allocations: 0 / 474.3 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.309e-05/0.3533, allocations: 19.66 kB / 474.3 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.3533, allocations: 4 kB / 474.3 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-06/0.3533, allocations: 0 / 474.3 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3533, allocations: 1.875 kB / 474.3 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3533, allocations: 0 / 474.3 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001035/0.3534, allocations: 172 kB / 474.5 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.486e-05/0.3535, allocations: 88.48 kB / 474.6 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.3535, allocations: 4 kB / 474.6 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.82e-05/0.3536, allocations: 3.328 kB / 474.6 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.967e-05/0.3536, allocations: 8 kB / 474.6 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-06/0.3536, allocations: 1.688 kB / 474.6 MB, free: 11.6 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.5e-05/0.3537, allocations: 101.4 kB / 474.7 MB, free: 11.51 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002202/0.3539, allocations: 4 kB / 474.7 MB, free: 11.5 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.609e-05/0.354, allocations: 95.19 kB / 474.8 MB, free: 11.4 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.945e-05/0.3541, allocations: 19.19 kB / 474.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.3541, allocations: 0 / 474.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.104e-05/0.3541, allocations: 7.375 kB / 474.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002366/0.3543, allocations: 27.25 kB / 474.8 MB, free: 11.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002179/0.3546, allocations: 89.47 kB / 474.9 MB, free: 11.26 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001685/0.3547, allocations: 0.7014 MB / 475.6 MB, free: 10.55 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3547, allocations: 0 / 475.6 MB, free: 10.55 MB / 346.7 MB Notification: Performance of Templates: time 0.00235/0.3571, allocations: 498 kB / 476.1 MB, free: 10.29 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches