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.001274/0.001274, allocations: 106.2 kB / 17.06 MB, free: 6.023 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.00147/0.00147, allocations: 191 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 1.575/1.575, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 47.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3905/0.3917, allocations: 49.42 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002636/0.3944, allocations: 0.8533 MB / 401.6 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000384/0.3949, allocations: 123.5 kB / 401.7 MB, free: 7.934 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.816e-05/0.395, allocations: 0 / 401.7 MB, free: 7.934 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001217/0.3951, allocations: 7.938 kB / 401.7 MB, free: 7.926 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000164/0.3953, allocations: 11.92 kB / 401.7 MB, free: 7.914 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002673/0.3955, allocations: 43.89 kB / 401.8 MB, free: 7.871 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001593/0.3957, allocations: 35.92 kB / 401.8 MB, free: 7.836 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.3959, allocations: 23.97 kB / 401.8 MB, free: 7.812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.802e-05/0.3959, allocations: 19.88 kB / 401.8 MB, free: 7.793 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.957e-05/0.396, allocations: 19.91 kB / 401.9 MB, free: 7.773 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.427e-05/0.3961, allocations: 7.938 kB / 401.9 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.421e-05/0.3961, allocations: 4 kB / 401.9 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.89e-05/0.3962, allocations: 19.94 kB / 401.9 MB, free: 7.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.68e-05/0.3962, allocations: 27.8 kB / 401.9 MB, free: 7.715 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000153/0.3964, allocations: 63.73 kB / 402 MB, free: 7.652 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3964, allocations: 0 / 402 MB, free: 7.652 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3964, allocations: 0 / 402 MB, free: 7.652 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.3964, allocations: 0 / 402 MB, free: 7.652 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.0006419/0.3971, allocations: 376.3 kB / 402.3 MB, free: 7.238 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.3971, allocations: 8.031 kB / 402.3 MB, free: 7.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.643e-05/0.3972, allocations: 12.84 kB / 402.4 MB, free: 7.219 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002828/0.3975, allocations: 200 kB / 402.6 MB, free: 6.984 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.3975, allocations: 8.375 kB / 402.6 MB, free: 6.977 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.132e-05/0.3975, allocations: 8.375 kB / 402.6 MB, free: 6.969 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003338/0.3978, allocations: 147.7 kB / 402.7 MB, free: 6.812 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.3979, allocations: 192 / 402.7 MB, free: 6.812 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.3979, allocations: 7.938 kB / 402.7 MB, free: 6.805 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.3979, allocations: 3.984 kB / 402.7 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.543e-05/0.398, allocations: 27.91 kB / 402.8 MB, free: 6.773 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001761/0.3981, allocations: 169.7 kB / 402.9 MB, free: 6.559 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001704/0.3983, allocations: 74.7 kB / 403 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.969e-05/0.3984, allocations: 40.89 kB / 403 MB, free: 6.434 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.3984, allocations: 4 kB / 403 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.3984, allocations: 38.5 kB / 403.1 MB, free: 6.383 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.3985, allocations: 0 / 403.1 MB, free: 6.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.000221/0.3987, allocations: 105.5 kB / 403.2 MB, free: 6.273 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.584e-05/0.3988, allocations: 55.39 kB / 403.2 MB, free: 6.207 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.3989, allocations: 148.2 kB / 403.4 MB, free: 6.055 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.3989, allocations: 25.7 kB / 403.4 MB, free: 6.023 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.501e-05/0.399, allocations: 84.14 kB / 403.5 MB, free: 5.938 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.14e-05/0.399, allocations: 11.98 kB / 403.5 MB, free: 5.926 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.37e-05/0.399, allocations: 25.72 kB / 403.5 MB, free: 5.895 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.3992, allocations: 314.8 kB / 403.8 MB, free: 5.578 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.564e-05/0.3992, allocations: 12 kB / 403.8 MB, free: 5.566 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.633e-05/0.3993, allocations: 58.8 kB / 403.9 MB, free: 5.484 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.058e-05/0.3994, allocations: 82.73 kB / 404 MB, free: 5.379 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3994, allocations: 0 / 404 MB, free: 5.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001277/0.3995, allocations: 89.47 kB / 404.1 MB, free: 5.285 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.3996, allocations: 7.938 kB / 404.1 MB, free: 5.277 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.3996, allocations: 7.938 kB / 404.1 MB, free: 5.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.3996, allocations: 0 / 404.1 MB, free: 5.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.3997, allocations: 20.17 kB / 404.1 MB, free: 5.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/0.3997, allocations: 8 kB / 404.1 MB, free: 5.242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.794e-05/0.3998, allocations: 11.91 kB / 404.1 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.3998, allocations: 4 kB / 404.1 MB, free: 5.227 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 9.898e-05/0.3999, allocations: 125.8 kB / 404.2 MB, free: 5.094 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.4, allocations: 89.61 kB / 404.3 MB, free: 5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.383e-05/0.4001, allocations: 12.72 kB / 404.3 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.4001, allocations: 0 / 404.3 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.4001, allocations: 0 / 404.3 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.4001, allocations: 11.98 kB / 404.4 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001258/0.4002, allocations: 165.7 kB / 404.5 MB, free: 4.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.4002, allocations: 0 / 404.5 MB, free: 4.762 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.032e-05/0.4003, allocations: 15.98 kB / 404.5 MB, free: 4.746 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.4003, allocations: 3.938 kB / 404.5 MB, free: 4.742 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.4003, allocations: 4 kB / 404.5 MB, free: 4.738 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.4003, allocations: 4 kB / 404.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/0.4003, allocations: 4 kB / 404.6 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001493/0.4005, allocations: 117 kB / 404.7 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.29e-05/0.4006, allocations: 89 kB / 404.8 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.4006, allocations: 11.94 kB / 404.8 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.14e-05/0.4006, allocations: 192 / 404.8 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.266e-06/0.4006, allocations: 0 / 404.8 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.4006, allocations: 3.938 kB / 404.8 MB, free: 4.477 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.904e-05/0.4007, allocations: 111.2 kB / 404.9 MB, free: 4.367 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4007, allocations: 0 / 404.9 MB, free: 4.367 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002074/0.4009, allocations: 8 kB / 404.9 MB, free: 4.359 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.0001245/0.4011, allocations: 108 kB / 405 MB, free: 4.246 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001357/0.4012, allocations: 47.86 kB / 405 MB, free: 4.199 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4012, allocations: 0 / 405 MB, free: 4.199 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.445e-06/0.4012, allocations: 0 / 405 MB, free: 4.199 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003422/0.4016, allocations: 59.64 kB / 405.1 MB, free: 4.145 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003178/0.4019, allocations: 166 kB / 405.3 MB, free: 3.957 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.4022, allocations: 0.7117 MB / 406 MB, free: 3.219 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.743e-05/0.4023, allocations: 0.6719 kB / 406 MB, free: 3.215 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.484e-05/0.4023, allocations: 11.44 kB / 406 MB, free: 3.203 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.4023, allocations: 0 / 406 MB, free: 3.203 MB / 318.1 MB Notification: Performance of Templates: time 0.003273/0.4056, allocations: 0.7014 MB / 406.7 MB, free: 2.504 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