Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 107.4 kB / 17.06 MB, free: 5.82 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 195.9 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.593/1.593, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 51.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4179/0.4192, allocations: 49.42 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.003401/0.4226, allocations: 1.431 MB / 402.1 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003051/0.423, allocations: 31.86 kB / 402.2 MB, free: 7.406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.4231, allocations: 0 / 402.2 MB, free: 7.406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.01e-05/0.4232, allocations: 7.922 kB / 402.2 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.061e-05/0.4233, allocations: 3.938 kB / 402.2 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003482/0.4236, allocations: 23.97 kB / 402.2 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001077/0.4237, allocations: 27.92 kB / 402.2 MB, free: 7.344 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.4239, allocations: 15.98 kB / 402.3 MB, free: 7.328 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.456e-05/0.4239, allocations: 11.92 kB / 402.3 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.836e-05/0.424, allocations: 15.92 kB / 402.3 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.212e-05/0.424, allocations: 0 / 402.3 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.166e-05/0.4241, allocations: 4 kB / 402.3 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.686e-05/0.4241, allocations: 4 kB / 402.3 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.029e-05/0.4241, allocations: 19.86 kB / 402.3 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001476/0.4243, allocations: 31.89 kB / 402.3 MB, free: 7.242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.4243, allocations: 0 / 402.3 MB, free: 7.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4243, allocations: 0 / 402.3 MB, free: 7.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.4243, allocations: 0 / 402.3 MB, free: 7.242 MB / 318.1 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.0008588/0.4252, allocations: 351.2 kB / 402.7 MB, free: 6.852 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.4253, allocations: 8.031 kB / 402.7 MB, free: 6.844 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.346e-05/0.4253, allocations: 4.938 kB / 402.7 MB, free: 6.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002729/0.4256, allocations: 176.3 kB / 402.9 MB, free: 6.629 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.124e-05/0.4256, allocations: 4.375 kB / 402.9 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.4256, allocations: 4.359 kB / 402.9 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003501/0.426, allocations: 123.8 kB / 403 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.426, allocations: 192 / 403 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.426, allocations: 3.938 kB / 403 MB, free: 6.484 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.426, allocations: 0 / 403 MB, free: 6.484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.4262, allocations: 27.97 kB / 403 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001657/0.4263, allocations: 157.6 kB / 403.2 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001789/0.4265, allocations: 54.55 kB / 403.2 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.636e-05/0.4266, allocations: 36.84 kB / 403.3 MB, free: 6.152 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.055e-05/0.4266, allocations: 0 / 403.3 MB, free: 6.152 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.315e-05/0.4267, allocations: 34.56 kB / 403.3 MB, free: 6.109 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 7.22e-07/0.4267, allocations: 0 / 403.3 MB, free: 6.109 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002722/0.4269, allocations: 85.55 kB / 403.4 MB, free: 6.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.4271, allocations: 55.41 kB / 403.4 MB, free: 5.953 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.225e-05/0.4272, allocations: 105.8 kB / 403.5 MB, free: 5.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.308e-05/0.4272, allocations: 29.7 kB / 403.6 MB, free: 5.805 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004084/0.4276, allocations: 84.14 kB / 403.7 MB, free: 5.719 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.584e-05/0.4276, allocations: 0 / 403.7 MB, free: 5.719 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-05/0.4277, allocations: 25.66 kB / 403.7 MB, free: 5.688 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0003902/0.4281, allocations: 318.8 kB / 404 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.56e-05/0.4281, allocations: 8 kB / 404 MB, free: 5.359 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.768e-05/0.4281, allocations: 23.44 kB / 404 MB, free: 5.324 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001682/0.4283, allocations: 43.36 kB / 404.1 MB, free: 5.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.4283, allocations: 0 / 404.1 MB, free: 5.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.35e-05/0.4284, allocations: 61.59 kB / 404.1 MB, free: 5.203 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.4284, allocations: 4.125 kB / 404.1 MB, free: 5.199 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.4284, allocations: 12.3 kB / 404.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.4285, allocations: 4 kB / 404.1 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.338e-05/0.4286, allocations: 4 kB / 404.2 MB, free: 5.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/0.4286, allocations: 11.98 kB / 404.2 MB, free: 5.168 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.488e-05/0.4286, allocations: 3.938 kB / 404.2 MB, free: 5.164 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.4286, allocations: 7.938 kB / 404.2 MB, free: 5.156 MB / 318.1 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 ($CLKPRE.step.counter,step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001307/0.4288, allocations: 113.8 kB / 404.3 MB, free: 5.035 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.4289, allocations: 65.84 kB / 404.4 MB, free: 4.965 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.739e-05/0.4289, allocations: 11.84 kB / 404.4 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/0.429, allocations: 7.984 kB / 404.4 MB, free: 4.938 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.429, allocations: 3.938 kB / 404.4 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.429, allocations: 0 / 404.4 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/0.4291, allocations: 153.7 kB / 404.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4291, allocations: 0 / 404.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.84e-05/0.4292, allocations: 11.98 kB / 404.5 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.4292, allocations: 0 / 404.5 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.4292, allocations: 3.938 kB / 404.5 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.4292, allocations: 0 / 404.5 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4292, allocations: 3.938 kB / 404.5 MB, free: 4.715 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001868/0.4294, allocations: 97.05 kB / 404.6 MB, free: 4.602 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.4295, allocations: 81.11 kB / 404.7 MB, free: 4.504 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.308e-05/0.4296, allocations: 7.938 kB / 404.7 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.285e-05/0.4296, allocations: 4 kB / 404.7 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.677e-06/0.4296, allocations: 0 / 404.7 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-06/0.4296, allocations: 0 / 404.7 MB, free: 4.492 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.562e-05/0.4297, allocations: 87.27 kB / 404.8 MB, free: 4.406 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4297, allocations: 0 / 404.8 MB, free: 4.406 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001879/0.4299, allocations: 8 kB / 404.8 MB, free: 4.398 MB / 318.1 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 () * Number of clocked states: 1 (step.counter) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003108/0.4302, allocations: 103.2 kB / 404.9 MB, free: 4.289 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001441/0.4304, allocations: 27.92 kB / 405 MB, free: 4.262 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4304, allocations: 3.938 kB / 405 MB, free: 4.258 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.51e-07/0.4304, allocations: 4 kB / 405 MB, free: 4.254 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.4307, allocations: 31.98 kB / 405 MB, free: 4.223 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004418/0.4311, allocations: 121.8 kB / 405.1 MB, free: 4.078 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.4315, allocations: 0.6844 MB / 405.8 MB, free: 3.367 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.009e-05/0.4315, allocations: 0 / 405.8 MB, free: 3.367 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.478e-05/0.4316, allocations: 11.44 kB / 405.8 MB, free: 3.355 MB / 318.1 MB Notification: Performance of SimCode: time 7.42e-07/0.4316, allocations: 0 / 405.8 MB, free: 3.355 MB / 318.1 MB Notification: Performance of Templates: time 0.002978/0.4346, allocations: 443.2 kB / 406.2 MB, free: 2.926 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches