Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep") [: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 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 186.1 kB / 7.844 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 205.2 MB / 213.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008415/0.0008415, allocations: 82.88 kB / 261.5 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07892/0.07892, allocations: 12.59 MB / 322 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.881e-06/5.911e-06, allocations: 0 / 378.4 MB, free: 75.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09819/0.09822, allocations: 50.37 MB / 428.8 MB, free: 25.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3093/0.4075, allocations: 76.5 MB / 0.4934 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002138/0.4078, allocations: 71.98 kB / 0.4935 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.001776/0.4096, allocations: 478 kB / 0.4939 GB, free: 11.96 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.396e-05/0.4096, allocations: 0 / 0.4939 GB, free: 11.96 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002402/0.4099, allocations: 332.4 kB / 0.4943 GB, free: 11.62 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.4099, allocations: 11.47 kB / 0.4943 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.131e-05/0.4099, allocations: 0 / 0.4943 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001807/0.4101, allocations: 175.7 kB / 0.4944 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.4102, allocations: 4 kB / 0.4944 GB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.969e-06/0.4102, allocations: 0 / 0.4944 GB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.169e-05/0.4102, allocations: 17.34 kB / 0.4945 GB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001553/0.4104, allocations: 90.03 kB / 0.4945 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.4104, allocations: 0 / 0.4945 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.768e-06/0.4104, allocations: 4.656 kB / 0.4946 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.4104, allocations: 0 / 0.4946 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.032e-05/0.4105, allocations: 138.2 kB / 0.4947 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.602e-05/0.4106, allocations: 37.88 kB / 0.4947 GB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.169e-05/0.4107, allocations: 18.22 kB / 0.4947 GB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.735e-06/0.4107, allocations: 0 / 0.4947 GB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/0.4107, allocations: 38.19 kB / 0.4948 GB, free: 11.12 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.4107, allocations: 0 / 0.4948 GB, free: 11.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001211/0.4108, allocations: 52.09 kB / 0.4948 GB, free: 11.08 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/0.4109, allocations: 67.2 kB / 0.4949 GB, free: 11.01 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.48e-05/0.4109, allocations: 97.7 kB / 0.495 GB, free: 10.91 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.608e-06/0.411, allocations: 25.7 kB / 0.495 GB, free: 10.88 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.603e-05/0.411, allocations: 85.62 kB / 0.4951 GB, free: 10.8 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.208e-05/0.411, allocations: 3.438 kB / 0.4951 GB, free: 10.8 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-06/0.411, allocations: 0 / 0.4951 GB, free: 10.8 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.429e-05/0.4111, allocations: 316.7 kB / 0.4954 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.084e-05/0.4111, allocations: 7.156 kB / 0.4954 GB, free: 10.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.9e-05/0.4111, allocations: 27.25 kB / 0.4954 GB, free: 10.45 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.705e-05/0.4111, allocations: 12.55 kB / 0.4954 GB, free: 10.45 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.4111, allocations: 0 / 0.4954 GB, free: 10.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.295e-05/0.4112, allocations: 54.89 kB / 0.4955 GB, free: 10.41 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.388e-06/0.4112, allocations: 7.938 kB / 0.4955 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.4112, allocations: 1.547 kB / 0.4955 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.4112, allocations: 3.844 kB / 0.4955 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.163e-05/0.4113, allocations: 7.688 kB / 0.4955 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.4113, allocations: 5.547 kB / 0.4955 GB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.135e-05/0.4113, allocations: 0 / 0.4955 GB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-06/0.4114, allocations: 3.906 kB / 0.4955 GB, free: 10.4 MB / 330.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: 5 (step.counter,$CLKPRE.step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.65e-05/0.4114, allocations: 101 kB / 0.4956 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.134e-05/0.4115, allocations: 54.61 kB / 0.4957 GB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.46e-05/0.4115, allocations: 11.81 kB / 0.4957 GB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.4115, allocations: 0 / 0.4957 GB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.4115, allocations: 0 / 0.4957 GB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.4115, allocations: 1.5 kB / 0.4957 GB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.801e-05/0.4116, allocations: 142.1 kB / 0.4958 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.4116, allocations: 0 / 0.4958 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.122e-05/0.4116, allocations: 10.58 kB / 0.4958 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.4117, allocations: 0 / 0.4958 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.4117, allocations: 0 / 0.4958 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.4117, allocations: 3.844 kB / 0.4958 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.4117, allocations: 5.547 kB / 0.4958 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.841e-05/0.4118, allocations: 70.98 kB / 0.4959 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.766e-05/0.4118, allocations: 80.95 kB / 0.496 GB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.4118, allocations: 0 / 0.496 GB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.954e-05/0.4119, allocations: 9.188 kB / 0.496 GB, free: 9.918 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.828e-06/0.4119, allocations: 5.5 kB / 0.496 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-06/0.4119, allocations: 7.875 kB / 0.496 GB, free: 9.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.134e-05/0.4119, allocations: 87.12 kB / 0.4961 GB, free: 9.828 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001859/0.4121, allocations: 3.844 kB / 0.4961 GB, free: 9.828 MB / 330.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: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * 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.79e-05/0.4122, allocations: 99.45 kB / 0.4962 GB, free: 9.738 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 7.769e-05/0.4123, allocations: 18.23 kB / 0.4962 GB, free: 9.738 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.4123, allocations: 0 / 0.4962 GB, free: 9.738 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.81e-07/0.4123, allocations: 0 / 0.4962 GB, free: 9.738 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001848/0.4125, allocations: 20.47 kB / 0.4962 GB, free: 9.734 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001619/0.4127, allocations: 68.67 kB / 0.4963 GB, free: 9.664 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001308/0.4128, allocations: 0.698 MB / 0.497 GB, free: 8.961 MB / 330.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4128, allocations: 0 / 0.497 GB, free: 8.961 MB / 330.7 MB Notification: Performance of Templates: time 0.002/0.4148, allocations: 423.3 kB / 0.4974 GB, free: 8.902 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches