Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002291/0.002291, allocations: 182.5 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.621/1.621, allocations: 205.2 MB / 219 MB, free: 9.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008337/0.0008336, allocations: 106.8 kB / 267.1 MB, free: 9.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0749/0.0749, allocations: 12.58 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.72e-05/2.745e-05, allocations: 4 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07766/0.0777, allocations: 50.36 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3084/0.3861, allocations: 77.76 MB / 0.5021 GB, free: 11.99 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001913/0.3864, allocations: 77.08 kB / 0.5022 GB, free: 11.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00293/0.3893, allocations: 1.273 MB / 0.5034 GB, free: 11.6 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3893, allocations: 0 / 0.5034 GB, free: 11.6 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.818e-06/0.3894, allocations: 0 / 0.5034 GB, free: 11.6 MB / 330.7 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.0002513/0.3896, allocations: 357.9 kB / 0.5037 GB, free: 11.24 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.3897, allocations: 7.656 kB / 0.5037 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.879e-05/0.3897, allocations: 11.66 kB / 0.5038 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001588/0.3899, allocations: 195.8 kB / 0.5039 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.3899, allocations: 3.875 kB / 0.5039 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.3899, allocations: 11.17 kB / 0.504 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002424/0.3902, allocations: 134.2 kB / 0.5041 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.3902, allocations: 3.938 kB / 0.5041 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.3902, allocations: 0 / 0.5041 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-06/0.3902, allocations: 0 / 0.5041 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.842e-05/0.3903, allocations: 24.8 kB / 0.5041 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001201/0.3904, allocations: 172.3 kB / 0.5043 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000117/0.3905, allocations: 77.48 kB / 0.5044 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.496e-05/0.3906, allocations: 42.42 kB / 0.5044 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.919e-06/0.3906, allocations: 0 / 0.5044 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.57e-05/0.3906, allocations: 38 kB / 0.5044 GB, free: 10.69 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 9.61e-07/0.3906, allocations: 0 / 0.5044 GB, free: 10.69 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001707/0.3908, allocations: 76.73 kB / 0.5045 GB, free: 10.65 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.973e-05/0.3909, allocations: 58.2 kB / 0.5046 GB, free: 10.59 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.5e-05/0.3909, allocations: 138.2 kB / 0.5047 GB, free: 10.49 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.624e-06/0.391, allocations: 25.7 kB / 0.5047 GB, free: 10.46 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.823e-05/0.391, allocations: 98.62 kB / 0.5048 GB, free: 10.37 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.218e-05/0.391, allocations: 0 / 0.5048 GB, free: 10.37 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-06/0.391, allocations: 0 / 0.5048 GB, free: 10.37 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.329e-05/0.3911, allocations: 320.8 kB / 0.5051 GB, free: 10.06 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.64e-05/0.3911, allocations: 7.281 kB / 0.5051 GB, free: 10.06 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.493e-05/0.3911, allocations: 68.47 kB / 0.5052 GB, free: 9.984 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.966e-05/0.3912, allocations: 21.67 kB / 0.5052 GB, free: 9.98 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3912, allocations: 0 / 0.5052 GB, free: 9.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001025/0.3913, allocations: 96.3 kB / 0.5053 GB, free: 9.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.3913, allocations: 3.844 kB / 0.5053 GB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.3913, allocations: 3.844 kB / 0.5053 GB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.3913, allocations: 3.938 kB / 0.5053 GB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.088e-05/0.3914, allocations: 22.44 kB / 0.5053 GB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.3914, allocations: 4.188 kB / 0.5053 GB, free: 9.918 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.41e-05/0.3915, allocations: 11.41 kB / 0.5053 GB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.3915, allocations: 3.844 kB / 0.5053 GB, free: 9.914 MB / 330.7 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,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.755e-05/0.3915, allocations: 116.7 kB / 0.5055 GB, free: 9.805 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.69e-05/0.3916, allocations: 77.75 kB / 0.5055 GB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.515e-05/0.3916, allocations: 18.14 kB / 0.5056 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3917, allocations: 3.938 kB / 0.5056 GB, free: 9.758 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3917, allocations: 0 / 0.5056 GB, free: 9.758 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.3917, allocations: 0 / 0.5056 GB, free: 9.758 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.29e-05/0.3917, allocations: 176.2 kB / 0.5057 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3917, allocations: 0 / 0.5057 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.892e-05/0.3918, allocations: 11.56 kB / 0.5057 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.3918, allocations: 2.578 kB / 0.5057 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-06/0.3918, allocations: 7.516 kB / 0.5057 GB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3918, allocations: 0 / 0.5057 GB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3918, allocations: 0 / 0.5057 GB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.912e-05/0.3919, allocations: 104.2 kB / 0.5058 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.092e-05/0.392, allocations: 101.1 kB / 0.5059 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.392, allocations: 3.844 kB / 0.5059 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.176e-05/0.392, allocations: 3.953 kB / 0.5059 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.195e-06/0.3921, allocations: 3.938 kB / 0.506 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.3921, allocations: 9.656 kB / 0.506 GB, free: 9.379 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.381e-05/0.3921, allocations: 107.5 kB / 0.5061 GB, free: 9.301 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3921, allocations: 192 / 0.5061 GB, free: 9.301 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001877/0.3923, allocations: 7.719 kB / 0.5061 GB, free: 9.301 MB / 330.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.77e-05/0.3924, allocations: 109.4 kB / 0.5062 GB, free: 9.207 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001025/0.3925, allocations: 44.95 kB / 0.5062 GB, free: 9.203 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3925, allocations: 3.844 kB / 0.5062 GB, free: 9.203 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.212e-06/0.3925, allocations: 0 / 0.5062 GB, free: 9.203 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002054/0.3927, allocations: 41.23 kB / 0.5063 GB, free: 9.199 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001884/0.3929, allocations: 120.7 kB / 0.5064 GB, free: 9.121 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001037/0.393, allocations: 0.7102 MB / 0.5071 GB, free: 8.418 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.561e-05/0.3931, allocations: 7.875 kB / 0.5071 GB, free: 8.414 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.04e-05/0.3931, allocations: 11.31 kB / 0.5071 GB, free: 8.406 MB / 330.7 MB Notification: Performance of SimCode: time 4.41e-07/0.3931, allocations: 0 / 0.5071 GB, free: 8.406 MB / 330.7 MB Notification: Performance of Templates: time 0.002189/0.3953, allocations: 0.6277 MB / 0.5077 GB, free: 8.328 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches