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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001734/0.001734, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.002731/0.002731, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.408/2.408, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 43.94 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3352, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.003839/0.3391, allocations: 1.423 MB / 401.6 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002766/0.3394, allocations: 22.47 kB / 401.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.108e-05/0.3395, allocations: 1.062 kB / 401.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.714e-05/0.3396, allocations: 7.922 kB / 401.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.39e-05/0.3397, allocations: 11.86 kB / 401.7 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002779/0.34, allocations: 22.55 kB / 401.7 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.892e-05/0.3401, allocations: 27.36 kB / 401.7 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.3402, allocations: 17.23 kB / 401.8 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.204e-05/0.3403, allocations: 16.61 kB / 401.8 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.657e-05/0.3403, allocations: 10.62 kB / 401.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.311e-05/0.3403, allocations: 2.688 kB / 401.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.287e-05/0.3404, allocations: 2.781 kB / 401.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.108e-05/0.3404, allocations: 13.27 kB / 401.8 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.584e-05/0.3404, allocations: 11.69 kB / 401.8 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001212/0.3406, allocations: 30.11 kB / 401.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3406, allocations: 0 / 401.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3406, allocations: 0 / 401.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.3406, allocations: 5.031 kB / 401.8 MB, free: 7.168 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.0004901/0.3411, allocations: 348.1 kB / 402.2 MB, free: 6.797 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/0.3412, allocations: 12.39 kB / 402.2 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.184e-05/0.3412, allocations: 35.81 kB / 402.2 MB, free: 6.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.868e-05/0.3413, allocations: 7.109 kB / 402.2 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002785/0.3415, allocations: 183.5 kB / 402.4 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/0.3416, allocations: 384 / 402.4 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.363e-05/0.3416, allocations: 8.312 kB / 402.4 MB, free: 6.523 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003799/0.342, allocations: 119.9 kB / 402.5 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.342, allocations: 3.938 kB / 402.6 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.342, allocations: 0 / 402.6 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.342, allocations: 0 / 402.6 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001189/0.3422, allocations: 27.97 kB / 402.6 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001607/0.3423, allocations: 157.7 kB / 402.7 MB, free: 6.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001735/0.3425, allocations: 66.5 kB / 402.8 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.729e-05/0.3426, allocations: 24.89 kB / 402.8 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.618e-06/0.3426, allocations: 0 / 402.8 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.3427, allocations: 34.56 kB / 402.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.3427, allocations: 0 / 402.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003278/0.343, allocations: 85.5 kB / 402.9 MB, free: 5.926 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.481e-05/0.3431, allocations: 55.41 kB / 403 MB, free: 5.859 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.3432, allocations: 105.8 kB / 403.1 MB, free: 5.746 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.3433, allocations: 33.64 kB / 403.1 MB, free: 5.707 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.872e-05/0.3433, allocations: 88.12 kB / 403.2 MB, free: 5.617 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/0.3434, allocations: 0 / 403.2 MB, free: 5.617 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.097e-05/0.3434, allocations: 21.7 kB / 403.2 MB, free: 5.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.3436, allocations: 314.8 kB / 403.5 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.905e-05/0.3436, allocations: 4 kB / 403.5 MB, free: 5.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.656e-05/0.3436, allocations: 39.36 kB / 403.6 MB, free: 5.219 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.392e-05/0.3437, allocations: 39.38 kB / 403.6 MB, free: 5.168 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3437, allocations: 0 / 403.6 MB, free: 5.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001005/0.3438, allocations: 57.72 kB / 403.7 MB, free: 5.105 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.3438, allocations: 11.94 kB / 403.7 MB, free: 5.094 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.3439, allocations: 4.312 kB / 403.7 MB, free: 5.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.3439, allocations: 0 / 403.7 MB, free: 5.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.729e-05/0.344, allocations: 8 kB / 403.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.726e-05/0.344, allocations: 11.94 kB / 403.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.479e-05/0.344, allocations: 3.906 kB / 403.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.344, allocations: 0 / 403.7 MB, free: 5.066 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.0001017/0.3441, allocations: 113.8 kB / 403.8 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/0.3443, allocations: 77.62 kB / 403.9 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.109e-05/0.3443, allocations: 3.906 kB / 403.9 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.3444, allocations: 0 / 403.9 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.3444, allocations: 0 / 403.9 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.3444, allocations: 4 kB / 403.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001374/0.3445, allocations: 153.7 kB / 404.1 MB, free: 4.648 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3445, allocations: 4 kB / 404.1 MB, free: 4.645 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.808e-05/0.3446, allocations: 8 kB / 404.1 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.3446, allocations: 7.875 kB / 404.1 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.3446, allocations: 0 / 404.1 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.3446, allocations: 0 / 404.1 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3446, allocations: 4 kB / 404.1 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002073/0.3449, allocations: 97 kB / 404.2 MB, free: 4.512 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.327e-05/0.3449, allocations: 77.11 kB / 404.3 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.086e-05/0.345, allocations: 7.938 kB / 404.3 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.089e-05/0.345, allocations: 0 / 404.3 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.043e-05/0.345, allocations: 7.984 kB / 404.3 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.172e-06/0.345, allocations: 288 / 404.3 MB, free: 4.402 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.918e-05/0.3451, allocations: 87.28 kB / 404.4 MB, free: 4.316 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3451, allocations: 0 / 404.4 MB, free: 4.316 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002005/0.3453, allocations: 4 kB / 404.4 MB, free: 4.312 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.0007099/0.346, allocations: 0.663 MB / 405 MB, free: 3.621 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002124/0.3463, allocations: 28.17 kB / 405.1 MB, free: 3.594 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3463, allocations: 4.062 kB / 405.1 MB, free: 3.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.657e-06/0.3463, allocations: 3.938 kB / 405.1 MB, free: 3.586 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003808/0.3467, allocations: 27.92 kB / 405.1 MB, free: 3.559 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.348, allocations: 1.177 MB / 406.3 MB, free: 2.281 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.3484, allocations: 0.6883 MB / 407 MB, free: 1.566 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.474e-05/0.3484, allocations: 0 / 407 MB, free: 1.566 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.137e-05/0.3485, allocations: 15.38 kB / 407 MB, free: 1.551 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3485, allocations: 4 kB / 407 MB, free: 1.547 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01997/0.3684, allocations: 1.365 MB / 408.3 MB, free: 324 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.075/9.443, allocations: 7.469 kB / 408.3 MB, free: 324 kB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/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