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.001506/0.001505, allocations: 111 kB / 17.74 MB, free: 5.34 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.001641/0.001641, allocations: 188.3 kB / 18.67 MB, free: 4.414 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.396/1.396, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 43.92 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2551, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002397/0.2575, allocations: 0.8582 MB / 402.3 MB, free: 8.008 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003671/0.2579, allocations: 119.6 kB / 402.4 MB, free: 7.891 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.29e-05/0.258, allocations: 3.938 kB / 402.4 MB, free: 7.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.87e-05/0.2581, allocations: 7.938 kB / 402.4 MB, free: 7.879 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001196/0.2582, allocations: 11.92 kB / 402.4 MB, free: 7.867 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002194/0.2585, allocations: 35.91 kB / 402.4 MB, free: 7.832 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.2586, allocations: 39.91 kB / 402.5 MB, free: 7.793 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.2587, allocations: 23.98 kB / 402.5 MB, free: 7.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.705e-05/0.2588, allocations: 19.88 kB / 402.5 MB, free: 7.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.961e-05/0.2588, allocations: 15.92 kB / 402.5 MB, free: 7.734 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.037e-05/0.2589, allocations: 4 kB / 402.5 MB, free: 7.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.279e-05/0.2589, allocations: 4 kB / 402.5 MB, free: 7.727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.189e-05/0.259, allocations: 23.91 kB / 402.6 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.264e-05/0.259, allocations: 23.81 kB / 402.6 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000126/0.2591, allocations: 67.62 kB / 402.6 MB, free: 7.613 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2591, allocations: 0 / 402.6 MB, free: 7.613 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2592, allocations: 4 kB / 402.6 MB, free: 7.609 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.2592, allocations: 0 / 402.6 MB, free: 7.609 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.000495/0.2597, allocations: 387 kB / 403 MB, free: 7.184 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.2597, allocations: 8.031 kB / 403 MB, free: 7.176 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.499e-05/0.2597, allocations: 8.844 kB / 403 MB, free: 7.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002073/0.26, allocations: 193.4 kB / 403.2 MB, free: 6.941 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.492e-05/0.26, allocations: 12.38 kB / 403.2 MB, free: 6.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.741e-05/0.26, allocations: 8.312 kB / 403.3 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002851/0.2603, allocations: 143.7 kB / 403.4 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.2603, allocations: 192 / 403.4 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.2603, allocations: 7.938 kB / 403.4 MB, free: 6.762 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.2603, allocations: 0 / 403.4 MB, free: 6.762 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.832e-05/0.2604, allocations: 19.98 kB / 403.4 MB, free: 6.742 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001509/0.2606, allocations: 173.6 kB / 403.6 MB, free: 6.523 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001561/0.2607, allocations: 86.67 kB / 403.7 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.79e-05/0.2608, allocations: 40.84 kB / 403.7 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.038e-05/0.2608, allocations: 0 / 403.7 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.2608, allocations: 30.56 kB / 403.7 MB, free: 6.348 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.823e-06/0.2609, allocations: 4 kB / 403.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002158/0.2611, allocations: 113.6 kB / 403.9 MB, free: 6.227 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/0.2611, allocations: 51.41 kB / 403.9 MB, free: 6.164 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.2613, allocations: 149.7 kB / 404.1 MB, free: 6.008 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.2613, allocations: 25.7 kB / 404.1 MB, free: 5.977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.888e-05/0.2613, allocations: 84.14 kB / 404.2 MB, free: 5.891 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.627e-05/0.2614, allocations: 4 kB / 404.2 MB, free: 5.887 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.156e-05/0.2614, allocations: 29.7 kB / 404.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.2615, allocations: 314.8 kB / 404.5 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.446e-05/0.2615, allocations: 15.98 kB / 404.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.9e-05/0.2616, allocations: 58.8 kB / 404.6 MB, free: 5.438 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.085e-05/0.2617, allocations: 74.81 kB / 404.6 MB, free: 5.34 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2617, allocations: 0 / 404.6 MB, free: 5.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001353/0.2618, allocations: 93.45 kB / 404.7 MB, free: 5.242 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.2619, allocations: 11.94 kB / 404.8 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.2619, allocations: 0 / 404.8 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.2619, allocations: 4.188 kB / 404.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.827e-05/0.262, allocations: 19.88 kB / 404.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.262, allocations: 7.938 kB / 404.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.109e-05/0.262, allocations: 15.89 kB / 404.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-06/0.262, allocations: 4 kB / 404.8 MB, free: 5.18 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.0001023/0.2622, allocations: 126 kB / 404.9 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.2623, allocations: 89.45 kB / 405 MB, free: 4.953 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.792e-05/0.2623, allocations: 12.72 kB / 405 MB, free: 4.938 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2623, allocations: 0 / 405 MB, free: 4.938 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2623, allocations: 0 / 405 MB, free: 4.938 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.2623, allocations: 0 / 405 MB, free: 4.938 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001074/0.2624, allocations: 173.6 kB / 405.2 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2625, allocations: 0 / 405.2 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.895e-05/0.2625, allocations: 12 kB / 405.2 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.2625, allocations: 3.938 kB / 405.2 MB, free: 4.703 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.2626, allocations: 8 kB / 405.2 MB, free: 4.695 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.2626, allocations: 0 / 405.2 MB, free: 4.695 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.2626, allocations: 4 kB / 405.2 MB, free: 4.691 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001384/0.2627, allocations: 120.9 kB / 405.3 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.564e-05/0.2628, allocations: 89 kB / 405.4 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.928e-05/0.2628, allocations: 7.938 kB / 405.4 MB, free: 4.441 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.489e-05/0.2628, allocations: 7.984 kB / 405.4 MB, free: 4.434 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.695e-06/0.2629, allocations: 0 / 405.4 MB, free: 4.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.2629, allocations: 4 kB / 405.4 MB, free: 4.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.617e-05/0.2629, allocations: 106.2 kB / 405.5 MB, free: 4.328 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2629, allocations: 0 / 405.5 MB, free: 4.328 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002092/0.2632, allocations: 12 kB / 405.6 MB, free: 4.316 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 9.551e-05/0.2633, allocations: 108 kB / 405.7 MB, free: 4.203 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001281/0.2634, allocations: 44.3 kB / 405.7 MB, free: 4.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.2634, allocations: 4.125 kB / 405.7 MB, free: 4.156 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.062e-06/0.2634, allocations: 0 / 405.7 MB, free: 4.156 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.2637, allocations: 51.7 kB / 405.8 MB, free: 4.109 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003052/0.264, allocations: 203.1 kB / 406 MB, free: 3.879 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000258/0.2643, allocations: 0.7038 MB / 406.7 MB, free: 3.148 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.57e-05/0.2643, allocations: 11.44 kB / 406.7 MB, free: 3.137 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2643, allocations: 0 / 406.7 MB, free: 3.137 MB / 318.1 MB Notification: Performance of Templates: time 0.002328/0.2667, allocations: 0.8884 MB / 407.6 MB, free: 2.25 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/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