Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001638/0.001638, allocations: 110.3 kB / 17.06 MB, free: 6.137 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.001902/0.001902, allocations: 191 kB / 18 MB, free: 5.219 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.658/1.658, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 43.94 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.3791, allocations: 49.43 MB / 400.7 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.00214/0.3812, allocations: 0.8575 MB / 401.6 MB, free: 8.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003523/0.3816, allocations: 119.6 kB / 401.7 MB, free: 8.051 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.101e-05/0.3817, allocations: 0 / 401.7 MB, free: 8.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001065/0.3818, allocations: 7.938 kB / 401.7 MB, free: 8.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001243/0.3819, allocations: 11.86 kB / 401.7 MB, free: 8.031 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001974/0.3821, allocations: 39.95 kB / 401.7 MB, free: 7.992 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.818e-05/0.3822, allocations: 39.86 kB / 401.8 MB, free: 7.953 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.3824, allocations: 23.98 kB / 401.8 MB, free: 7.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.884e-05/0.3824, allocations: 11.94 kB / 401.8 MB, free: 7.918 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.382e-05/0.3825, allocations: 27.84 kB / 401.8 MB, free: 7.891 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.839e-05/0.3825, allocations: 0 / 401.8 MB, free: 7.891 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.064e-05/0.3825, allocations: 4 kB / 401.8 MB, free: 7.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.745e-05/0.3826, allocations: 23.92 kB / 401.9 MB, free: 7.863 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.044e-05/0.3826, allocations: 27.8 kB / 401.9 MB, free: 7.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001116/0.3827, allocations: 55.75 kB / 402 MB, free: 7.781 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.3828, allocations: 0 / 402 MB, free: 7.781 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.3828, allocations: 4 kB / 402 MB, free: 7.777 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.3828, allocations: 0 / 402 MB, free: 7.777 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004797/0.3833, allocations: 384.4 kB / 402.3 MB, free: 7.352 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.3833, allocations: 8.031 kB / 402.3 MB, free: 7.344 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.034e-05/0.3833, allocations: 8.844 kB / 402.4 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002139/0.3836, allocations: 204 kB / 402.5 MB, free: 7.098 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.087e-06/0.3836, allocations: 384 / 402.6 MB, free: 7.098 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.163e-05/0.3836, allocations: 4.375 kB / 402.6 MB, free: 7.094 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002824/0.3839, allocations: 159.6 kB / 402.7 MB, free: 6.926 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.3839, allocations: 192 / 402.7 MB, free: 6.926 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.3839, allocations: 3.938 kB / 402.7 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.3839, allocations: 0 / 402.7 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.357e-05/0.384, allocations: 23.98 kB / 402.7 MB, free: 6.898 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001601/0.3841, allocations: 173.7 kB / 402.9 MB, free: 6.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001438/0.3843, allocations: 74.64 kB / 403 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.687e-05/0.3844, allocations: 44.89 kB / 403 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.313e-05/0.3844, allocations: 7.938 kB / 403 MB, free: 6.543 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.3844, allocations: 30.56 kB / 403.1 MB, free: 6.504 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 9.52e-07/0.3844, allocations: 0 / 403.1 MB, free: 6.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002114/0.3846, allocations: 109.9 kB / 403.2 MB, free: 6.391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.3847, allocations: 59.47 kB / 403.2 MB, free: 6.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.3848, allocations: 144.2 kB / 403.4 MB, free: 6.172 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.3849, allocations: 25.7 kB / 403.4 MB, free: 6.141 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.231e-05/0.3849, allocations: 88.08 kB / 403.5 MB, free: 6.051 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.585e-05/0.3849, allocations: 7.984 kB / 403.5 MB, free: 6.043 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.537e-05/0.385, allocations: 25.72 kB / 403.5 MB, free: 6.012 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.3851, allocations: 318.8 kB / 403.8 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.527e-05/0.3852, allocations: 12 kB / 403.8 MB, free: 5.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.955e-05/0.3852, allocations: 62.84 kB / 403.9 MB, free: 5.594 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.706e-05/0.3853, allocations: 74.75 kB / 404 MB, free: 5.496 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3853, allocations: 0 / 404 MB, free: 5.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001213/0.3854, allocations: 101.4 kB / 404.1 MB, free: 5.391 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.3855, allocations: 7.938 kB / 404.1 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.3855, allocations: 4 kB / 404.1 MB, free: 5.379 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.3855, allocations: 0 / 404.1 MB, free: 5.379 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.416e-05/0.3856, allocations: 19.98 kB / 404.1 MB, free: 5.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.3856, allocations: 0 / 404.1 MB, free: 5.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.192e-05/0.3856, allocations: 11.84 kB / 404.1 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.3856, allocations: 4 kB / 404.1 MB, free: 5.344 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001103/0.3857, allocations: 138 kB / 404.2 MB, free: 5.199 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.54e-05/0.3858, allocations: 81.53 kB / 404.3 MB, free: 5.113 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.242e-05/0.3859, allocations: 8.719 kB / 404.3 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3859, allocations: 4 kB / 404.3 MB, free: 5.098 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3859, allocations: 0 / 404.3 MB, free: 5.098 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.237e-06/0.3859, allocations: 0 / 404.3 MB, free: 5.098 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.386, allocations: 173.6 kB / 404.5 MB, free: 4.879 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.386, allocations: 0 / 404.5 MB, free: 4.879 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-05/0.3861, allocations: 15.98 kB / 404.5 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.379e-05/0.3861, allocations: 11.88 kB / 404.5 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.3861, allocations: 4 kB / 404.5 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3861, allocations: 0 / 404.5 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3861, allocations: 0 / 404.5 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001312/0.3863, allocations: 113.2 kB / 404.7 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.244e-05/0.3864, allocations: 93 kB / 404.7 MB, free: 4.609 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.3864, allocations: 11.88 kB / 404.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.035e-05/0.3864, allocations: 0 / 404.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.374e-06/0.3864, allocations: 0 / 404.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-06/0.3864, allocations: 4 kB / 404.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.378e-05/0.3865, allocations: 114.1 kB / 404.9 MB, free: 4.484 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3865, allocations: 0 / 404.9 MB, free: 4.484 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001956/0.3867, allocations: 12 kB / 404.9 MB, free: 4.473 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: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0001016/0.3868, allocations: 103.9 kB / 405 MB, free: 4.363 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001258/0.3869, allocations: 48.36 kB / 405 MB, free: 4.316 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3869, allocations: 4.062 kB / 405 MB, free: 4.312 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-07/0.387, allocations: 0 / 405 MB, free: 4.312 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.3872, allocations: 55.95 kB / 405.1 MB, free: 4.258 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002841/0.3875, allocations: 165.4 kB / 405.3 MB, free: 4.07 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.3878, allocations: 0.7116 MB / 406 MB, free: 3.332 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.184e-05/0.3878, allocations: 0.6719 kB / 406 MB, free: 3.328 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.456e-05/0.3879, allocations: 15.44 kB / 406 MB, free: 3.312 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3879, allocations: 0 / 406 MB, free: 3.312 MB / 318.1 MB Notification: Performance of Templates: time 0.002727/0.3906, allocations: 0.6984 MB / 406.7 MB, free: 2.621 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches