Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.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.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep") [: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.00144/0.00144, allocations: 184.2 kB / 7.844 MB, free: 2.512 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.261/1.261, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.0009803/0.0009805, allocations: 88.53 kB / 261.5 MB, free: 13.55 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.08365/0.08365, allocations: 12.6 MB / 322 MB, free: 0.918 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.783e-06/6.803e-06, allocations: 4 kB / 378.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1013, allocations: 50.37 MB / 428.8 MB, free: 25.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3294/0.4308, allocations: 76.54 MB / 0.4935 GB, free: 11.65 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/0.4311, allocations: 72.75 kB / 0.4935 GB, free: 11.65 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.001641/0.4327, allocations: 406.5 kB / 0.4939 GB, free: 11.63 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.4328, allocations: 0 / 0.4939 GB, free: 11.63 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.0002745/0.4331, allocations: 334 kB / 0.4942 GB, free: 11.29 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.4331, allocations: 7.688 kB / 0.4942 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.802e-05/0.4332, allocations: 0.8438 kB / 0.4942 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001514/0.4333, allocations: 181.6 kB / 0.4944 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.4333, allocations: 0 / 0.4944 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.4333, allocations: 3.812 kB / 0.4944 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.017e-05/0.4334, allocations: 16.95 kB / 0.4944 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001693/0.4336, allocations: 83.22 kB / 0.4945 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.4336, allocations: 3.938 kB / 0.4945 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.775e-06/0.4336, allocations: 0 / 0.4945 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.4336, allocations: 0.5 kB / 0.4945 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001036/0.4337, allocations: 138.9 kB / 0.4947 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.458e-05/0.4338, allocations: 36.59 kB / 0.4947 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.481e-05/0.4339, allocations: 20.42 kB / 0.4947 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.4339, allocations: 0 / 0.4947 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.258e-05/0.4339, allocations: 31.45 kB / 0.4947 GB, free: 10.79 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.212e-06/0.4339, allocations: 0 / 0.4947 GB, free: 10.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001204/0.434, allocations: 50.81 kB / 0.4948 GB, free: 10.75 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.557e-05/0.4341, allocations: 56.16 kB / 0.4948 GB, free: 10.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.8e-05/0.4341, allocations: 102.3 kB / 0.4949 GB, free: 10.59 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.927e-06/0.4342, allocations: 25.7 kB / 0.495 GB, free: 10.56 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.736e-05/0.4342, allocations: 84.73 kB / 0.495 GB, free: 10.48 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.284e-06/0.4342, allocations: 0.8906 kB / 0.495 GB, free: 10.48 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-06/0.4342, allocations: 0 / 0.495 GB, free: 10.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.929e-05/0.4343, allocations: 315.9 kB / 0.4953 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.755e-06/0.4343, allocations: 3.938 kB / 0.4953 GB, free: 10.16 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.788e-05/0.4343, allocations: 28.62 kB / 0.4954 GB, free: 10.13 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.446e-05/0.4343, allocations: 4.578 kB / 0.4954 GB, free: 10.13 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.4343, allocations: 0 / 0.4954 GB, free: 10.13 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.16e-05/0.4344, allocations: 55.27 kB / 0.4954 GB, free: 10.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.4344, allocations: 7.906 kB / 0.4954 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.4344, allocations: 0 / 0.4954 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.4344, allocations: 4.672 kB / 0.4954 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.834e-05/0.4345, allocations: 12.41 kB / 0.4955 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.4345, allocations: 3.812 kB / 0.4955 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.11e-05/0.4345, allocations: 4.75 kB / 0.4955 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.268e-06/0.4345, allocations: 3.844 kB / 0.4955 GB, free: 10.07 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: 3 (assignClock1.y,assignClock1.u,step.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 4.779e-05/0.4346, allocations: 101 kB / 0.4956 GB, free: 9.969 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.454e-05/0.4346, allocations: 48.22 kB / 0.4956 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.109e-05/0.4347, allocations: 16.45 kB / 0.4956 GB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.4347, allocations: 0.5156 kB / 0.4956 GB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.4347, allocations: 0 / 0.4956 GB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.4347, allocations: 4.688 kB / 0.4956 GB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.448e-05/0.4348, allocations: 130.8 kB / 0.4958 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.4348, allocations: 0 / 0.4958 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.647e-05/0.4348, allocations: 16.91 kB / 0.4958 GB, free: 9.758 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.4348, allocations: 0.5625 kB / 0.4958 GB, free: 9.758 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.121e-06/0.4349, allocations: 0 / 0.4958 GB, free: 9.758 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.4349, allocations: 3.906 kB / 0.4958 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4349, allocations: 4.516 kB / 0.4958 GB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.666e-05/0.4349, allocations: 76.22 kB / 0.4959 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.806e-05/0.435, allocations: 82.33 kB / 0.4959 GB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.313e-05/0.435, allocations: 0 / 0.4959 GB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.386e-05/0.435, allocations: 5.016 kB / 0.4959 GB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.246e-06/0.435, allocations: 0.6094 kB / 0.4959 GB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.818e-06/0.435, allocations: 4 kB / 0.4959 GB, free: 9.582 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.336e-05/0.4351, allocations: 88 kB / 0.496 GB, free: 9.504 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001846/0.4353, allocations: 3.875 kB / 0.496 GB, free: 9.504 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: 3 (step.y,assignClock1.u,assignClock1.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 6.912e-05/0.4353, allocations: 95.23 kB / 0.4961 GB, free: 9.414 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 6.468e-05/0.4354, allocations: 20.19 kB / 0.4961 GB, free: 9.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.4354, allocations: 3.938 kB / 0.4961 GB, free: 9.406 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.71e-07/0.4354, allocations: 0 / 0.4961 GB, free: 9.406 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001505/0.4356, allocations: 19.83 kB / 0.4962 GB, free: 9.402 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001487/0.4357, allocations: 70.92 kB / 0.4962 GB, free: 9.328 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.4359, allocations: 0.6939 MB / 0.4969 GB, free: 8.625 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4359, allocations: 0 / 0.4969 GB, free: 8.625 MB / 330.7 MB Notification: Performance of Templates: time 0.001871/0.4378, allocations: 321.6 kB / 0.4972 GB, free: 8.574 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches