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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009227/0.0009227, allocations: 177.6 kB / 8.047 MB, free: 1.027 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.472/1.472, allocations: 205.3 MB / 213.8 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009054/0.0009054, allocations: 82.62 kB / 261.8 MB, free: 1.684 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.06654/0.06654, allocations: 12.59 MB / 322.3 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.782e-05/1.774e-05, allocations: 4 kB / 378.9 MB, free: 6.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2104, allocations: 50.36 MB / 429.3 MB, free: 18.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08993/0.3004, allocations: 76.58 MB / 0.494 GB, free: 5.668 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000196/0.3007, allocations: 71.91 kB / 0.4941 GB, free: 5.598 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001786/0.3025, allocations: 0.7681 MB / 0.4948 GB, free: 4.832 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3025, allocations: 0 / 0.4948 GB, free: 4.832 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.3025, allocations: 0 / 0.4948 GB, free: 4.832 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002871/0.3028, allocations: 326.4 kB / 0.4952 GB, free: 4.469 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.3028, allocations: 12.03 kB / 0.4952 GB, free: 4.457 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.538e-05/0.3029, allocations: 7.984 kB / 0.4952 GB, free: 4.449 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.303, allocations: 179 kB / 0.4953 GB, free: 4.234 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.3031, allocations: 4 kB / 0.4954 GB, free: 4.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.425e-05/0.3031, allocations: 7.938 kB / 0.4954 GB, free: 4.223 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.351e-05/0.3031, allocations: 15.94 kB / 0.4954 GB, free: 4.207 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001582/0.3033, allocations: 83.34 kB / 0.4955 GB, free: 4.113 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.3033, allocations: 3.984 kB / 0.4955 GB, free: 4.109 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.3033, allocations: 7.938 kB / 0.4955 GB, free: 4.102 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.3033, allocations: 0 / 0.4955 GB, free: 4.102 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001086/0.3034, allocations: 134.2 kB / 0.4956 GB, free: 3.934 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.497e-05/0.3035, allocations: 34.58 kB / 0.4956 GB, free: 3.891 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.534e-05/0.3036, allocations: 21.02 kB / 0.4956 GB, free: 3.867 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.311e-05/0.3036, allocations: 0 / 0.4956 GB, free: 3.867 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.013e-05/0.3036, allocations: 46.45 kB / 0.4957 GB, free: 3.812 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 8.21e-07/0.3036, allocations: 0 / 0.4957 GB, free: 3.812 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001151/0.3038, allocations: 41.7 kB / 0.4957 GB, free: 3.766 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.866e-05/0.3038, allocations: 59.33 kB / 0.4958 GB, free: 3.695 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.185e-05/0.3039, allocations: 97 kB / 0.4959 GB, free: 3.594 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.3039, allocations: 25.7 kB / 0.4959 GB, free: 3.562 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.929e-05/0.3039, allocations: 84.14 kB / 0.496 GB, free: 3.477 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.06e-05/0.3039, allocations: 3.906 kB / 0.496 GB, free: 3.473 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-06/0.304, allocations: 0 / 0.496 GB, free: 3.473 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.3041, allocations: 322.8 kB / 0.4963 GB, free: 3.148 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.217e-05/0.3041, allocations: 4 kB / 0.4963 GB, free: 3.145 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.518e-05/0.3042, allocations: 27.69 kB / 0.4963 GB, free: 3.105 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.979e-05/0.3042, allocations: 11.94 kB / 0.4963 GB, free: 3.094 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3042, allocations: 0 / 0.4963 GB, free: 3.094 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.309e-05/0.3043, allocations: 57.62 kB / 0.4964 GB, free: 3.031 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.3043, allocations: 4 kB / 0.4964 GB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.3043, allocations: 128 / 0.4964 GB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.3043, allocations: 11.95 kB / 0.4964 GB, free: 3.016 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.383e-05/0.3044, allocations: 11.98 kB / 0.4964 GB, free: 3.004 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.3044, allocations: 0 / 0.4964 GB, free: 3.004 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.95e-05/0.3044, allocations: 0 / 0.4964 GB, free: 3.004 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.3044, allocations: 4 kB / 0.4964 GB, free: 3 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: 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 6.383e-05/0.3045, allocations: 105.1 kB / 0.4965 GB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.238e-05/0.3045, allocations: 53.53 kB / 0.4966 GB, free: 2.832 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.064e-05/0.3046, allocations: 12.34 kB / 0.4966 GB, free: 2.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3046, allocations: 0 / 0.4966 GB, free: 2.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3046, allocations: 3.953 kB / 0.4966 GB, free: 2.816 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.3046, allocations: 0 / 0.4966 GB, free: 2.816 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.619e-05/0.3047, allocations: 134.2 kB / 0.4967 GB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.3047, allocations: 0 / 0.4967 GB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.261e-05/0.3048, allocations: 11.98 kB / 0.4967 GB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.3048, allocations: 0 / 0.4967 GB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-06/0.3048, allocations: 7.938 kB / 0.4967 GB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.3048, allocations: 0 / 0.4967 GB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3048, allocations: 0 / 0.4967 GB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.615e-05/0.3049, allocations: 85.09 kB / 0.4968 GB, free: 2.527 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.834e-05/0.3049, allocations: 81.02 kB / 0.4969 GB, free: 2.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.535e-05/0.3049, allocations: 3.984 kB / 0.4969 GB, free: 2.426 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.36e-05/0.305, allocations: 4 kB / 0.4969 GB, free: 2.422 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.994e-06/0.305, allocations: 0 / 0.4969 GB, free: 2.422 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.305, allocations: 8 kB / 0.4969 GB, free: 2.414 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.281e-05/0.305, allocations: 83.28 kB / 0.497 GB, free: 2.332 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.305, allocations: 0 / 0.497 GB, free: 2.332 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001816/0.3052, allocations: 4 kB / 0.497 GB, free: 2.328 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: 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.796e-05/0.3053, allocations: 95.23 kB / 0.4971 GB, free: 2.223 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.208e-05/0.3054, allocations: 19.94 kB / 0.4971 GB, free: 2.203 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.3054, allocations: 0 / 0.4971 GB, free: 2.203 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.4e-07/0.3054, allocations: 256 / 0.4971 GB, free: 2.203 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001676/0.3056, allocations: 27.36 kB / 0.4971 GB, free: 2.18 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001535/0.3057, allocations: 67.88 kB / 0.4972 GB, free: 2.09 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002144/0.306, allocations: 0.6884 MB / 0.4979 GB, free: 1.375 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.792e-05/0.306, allocations: 0 / 0.4979 GB, free: 1.375 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.985e-05/0.306, allocations: 15.38 kB / 0.4979 GB, free: 1.359 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.306, allocations: 0 / 0.4979 GB, free: 1.359 MB / 346.7 MB Notification: Performance of Templates: time 0.001802/0.3078, allocations: 364.1 kB / 0.4982 GB, free: 1.004 MB / 346.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