Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.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.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock") [: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.0009901/0.0009902, allocations: 182.3 kB / 8.132 MB, free: 2.23 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.173/1.173, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.0008951/0.0008951, allocations: 97.5 kB / 280.8 MB, free: 1.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.573e-06/6.602e-06, allocations: 0 / 336.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1997/0.1997, allocations: 50.39 MB / 386.9 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07889/0.2787, allocations: 75.78 MB / 462.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002354/0.2789, allocations: 79.89 kB / 462.8 MB, free: 11.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.002905/0.2819, allocations: 0.9187 MB / 463.7 MB, free: 10.14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.2819, allocations: 8.969 kB / 463.7 MB, free: 10.14 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0002629/0.2822, allocations: 339.4 kB / 464 MB, free: 9.762 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.2822, allocations: 8.031 kB / 464 MB, free: 9.754 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.395e-05/0.2822, allocations: 9.594 kB / 464 MB, free: 9.746 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001777/0.2824, allocations: 195.1 kB / 464.2 MB, free: 9.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.668e-06/0.2824, allocations: 4 kB / 464.2 MB, free: 9.516 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.397e-06/0.2825, allocations: 4 kB / 464.2 MB, free: 9.512 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.119e-05/0.2825, allocations: 16.56 kB / 464.3 MB, free: 9.496 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.2827, allocations: 126.4 kB / 464.4 MB, free: 9.363 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.2828, allocations: 0 / 464.4 MB, free: 9.363 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.2828, allocations: 0.5312 kB / 464.4 MB, free: 9.363 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.2828, allocations: 2 kB / 464.4 MB, free: 9.363 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000117/0.2829, allocations: 146.7 kB / 464.5 MB, free: 9.184 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001019/0.283, allocations: 52.77 kB / 464.6 MB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.858e-05/0.2831, allocations: 37.55 kB / 464.6 MB, free: 9.086 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.2831, allocations: 0 / 464.6 MB, free: 9.086 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.601e-05/0.2831, allocations: 35.5 kB / 464.7 MB, free: 9.043 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 8.21e-07/0.2831, allocations: 0.9062 kB / 464.7 MB, free: 9.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001324/0.2833, allocations: 69.69 kB / 464.7 MB, free: 8.969 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.517e-05/0.2833, allocations: 58.23 kB / 464.8 MB, free: 8.902 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.862e-05/0.2834, allocations: 121.8 kB / 464.9 MB, free: 8.777 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.099e-05/0.2834, allocations: 25.7 kB / 464.9 MB, free: 8.746 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.765e-05/0.2835, allocations: 88.14 kB / 465 MB, free: 8.656 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.808e-06/0.2835, allocations: 3.938 kB / 465 MB, free: 8.652 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-06/0.2835, allocations: 0.8438 kB / 465 MB, free: 8.652 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.001e-05/0.2836, allocations: 322.8 kB / 465.3 MB, free: 8.328 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.349e-05/0.2836, allocations: 4 kB / 465.3 MB, free: 8.324 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.066e-05/0.2836, allocations: 58.88 kB / 465.4 MB, free: 8.242 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.615e-05/0.2837, allocations: 17.05 kB / 465.4 MB, free: 8.227 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2837, allocations: 0 / 465.4 MB, free: 8.227 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001076/0.2838, allocations: 81.47 kB / 465.5 MB, free: 8.141 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.2838, allocations: 4 kB / 465.5 MB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.2838, allocations: 4 kB / 465.5 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.006e-05/0.2838, allocations: 0 / 465.5 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.816e-05/0.2838, allocations: 9 kB / 465.5 MB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.2839, allocations: 7.906 kB / 465.5 MB, free: 8.117 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.219e-05/0.2839, allocations: 0 / 465.5 MB, free: 8.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.253e-06/0.2839, allocations: 4 kB / 465.5 MB, free: 8.113 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (integerConstant.y,xor.y,xor.u2,xor.u1,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 7.361e-05/0.284, allocations: 114.8 kB / 465.6 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.947e-05/0.2841, allocations: 61.61 kB / 465.7 MB, free: 7.93 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.038e-05/0.2841, allocations: 17.14 kB / 465.7 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.726e-06/0.2841, allocations: 4 kB / 465.7 MB, free: 7.906 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.2841, allocations: 0 / 465.7 MB, free: 7.906 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.2841, allocations: 0 / 465.7 MB, free: 7.906 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.222e-05/0.2842, allocations: 143.1 kB / 465.8 MB, free: 7.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2842, allocations: 4 kB / 465.9 MB, free: 7.727 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.132e-05/0.2842, allocations: 4 kB / 465.9 MB, free: 7.723 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.2842, allocations: 0 / 465.9 MB, free: 7.723 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-06/0.2843, allocations: 4 kB / 465.9 MB, free: 7.719 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.031e-06/0.2843, allocations: 192 / 465.9 MB, free: 7.719 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2843, allocations: 0 / 465.9 MB, free: 7.719 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.838e-05/0.2844, allocations: 101.7 kB / 466 MB, free: 7.602 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.06e-05/0.2844, allocations: 93 kB / 466 MB, free: 7.492 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.629e-05/0.2845, allocations: 3.906 kB / 466.1 MB, free: 7.488 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.45e-05/0.2845, allocations: 0 / 466.1 MB, free: 7.488 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.759e-06/0.2845, allocations: 0 / 466.1 MB, free: 7.488 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-06/0.2845, allocations: 9.5 kB / 466.1 MB, free: 7.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.734e-05/0.2846, allocations: 105 kB / 466.2 MB, free: 7.379 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001987/0.2848, allocations: 8 kB / 466.2 MB, free: 7.371 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,xor.u1,xor.u2,xor.y,integerConstant.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.43e-05/0.2849, allocations: 99.19 kB / 466.3 MB, free: 7.262 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.501e-05/0.2849, allocations: 35.94 kB / 466.3 MB, free: 7.227 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.285, allocations: 0.5 kB / 466.3 MB, free: 7.227 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.21e-07/0.285, allocations: 0 / 466.3 MB, free: 7.227 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.2852, allocations: 41.12 kB / 466.3 MB, free: 7.191 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002076/0.2854, allocations: 103.4 kB / 466.4 MB, free: 7.066 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002327/0.2856, allocations: 0.7114 MB / 467.2 MB, free: 6.328 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2856, allocations: 0 / 467.2 MB, free: 6.328 MB / 346.7 MB Notification: Performance of Templates: time 0.002176/0.2878, allocations: 0.6192 MB / 467.8 MB, free: 5.723 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/AssignClock/AssignClock.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches