Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009881/0.0009883, allocations: 173.2 kB / 16.8 MB, free: 4.984 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.288/1.288, allocations: 205.4 MB / 223 MB, free: 9.016 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.0007407/0.0007408, allocations: 98.27 kB / 271.3 MB, free: 8.242 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.06811/0.06811, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003649/0.000365, allocations: 12 kB / 393.3 MB, free: 65.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08184/0.08222, allocations: 50.37 MB / 443.7 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample): time 0.00141/0.08367, allocations: 1.266 MB / 444.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006322/0.08432, allocations: 0.5075 MB / 445.5 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.62e-05/0.0844, allocations: 3.938 kB / 445.5 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.011e-05/0.08444, allocations: 3.984 kB / 445.5 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001163/0.08456, allocations: 11.94 kB / 445.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002349/0.08481, allocations: 39.91 kB / 445.5 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.384e-05/0.08489, allocations: 51.77 kB / 445.6 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.085, allocations: 16.17 kB / 445.6 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.243e-05/0.08507, allocations: 27.86 kB / 445.6 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.137e-05/0.08513, allocations: 19.86 kB / 445.6 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.999e-05/0.08515, allocations: 8 kB / 445.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.158e-05/0.08517, allocations: 0 / 445.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.894e-05/0.08523, allocations: 11.92 kB / 445.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.831e-05/0.08527, allocations: 49.45 kB / 445.7 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.679e-05/0.08535, allocations: 31.94 kB / 445.7 MB, free: 13.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.08536, allocations: 0 / 445.7 MB, free: 13.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.08536, allocations: 0 / 445.7 MB, free: 13.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.566e-06/0.08537, allocations: 0 / 445.7 MB, free: 13.37 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004103/0.08579, allocations: 375.5 kB / 446.1 MB, free: 12.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.08583, allocations: 15.97 kB / 446.1 MB, free: 12.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.01e-05/0.08586, allocations: 8.844 kB / 446.1 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.08601, allocations: 204 kB / 446.3 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.08603, allocations: 4.375 kB / 446.3 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.08605, allocations: 4.375 kB / 446.3 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002369/0.08629, allocations: 109.2 kB / 446.4 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.08631, allocations: 4 kB / 446.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-06/0.08633, allocations: 0 / 446.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.08634, allocations: 0 / 446.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.547e-05/0.08642, allocations: 19.98 kB / 446.5 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002374/0.08666, allocations: 269.7 kB / 446.7 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.096e-05/0.08674, allocations: 45.22 kB / 446.8 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.371e-05/0.0868, allocations: 17.77 kB / 446.8 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.08682, allocations: 4 kB / 446.8 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.642e-05/0.08685, allocations: 38.5 kB / 446.8 MB, free: 12.08 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.08685, allocations: 0 / 446.8 MB, free: 12.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002139/0.08707, allocations: 77.52 kB / 446.9 MB, free: 12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/0.08712, allocations: 77.11 kB / 447 MB, free: 11.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.126e-05/0.08722, allocations: 149.8 kB / 447.1 MB, free: 11.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.723e-06/0.08723, allocations: 25.7 kB / 447.1 MB, free: 11.72 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.948e-05/0.08727, allocations: 92.14 kB / 447.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.326e-05/0.08728, allocations: 3.906 kB / 447.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.046e-06/0.08729, allocations: 0 / 447.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.56e-05/0.08734, allocations: 322.8 kB / 447.6 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.82e-05/0.08739, allocations: 8 kB / 447.6 MB, free: 11.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.367e-05/0.08743, allocations: 25.7 kB / 447.6 MB, free: 11.26 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.961e-05/0.0875, allocations: 33.64 kB / 447.6 MB, free: 11.22 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.08752, allocations: 4 kB / 447.6 MB, free: 11.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001005/0.08762, allocations: 57.75 kB / 447.7 MB, free: 11.15 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.08764, allocations: 4 kB / 447.7 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.08765, allocations: 3.938 kB / 447.7 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.08767, allocations: 0 / 447.7 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.669e-05/0.08774, allocations: 15.92 kB / 447.7 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.08775, allocations: 3.984 kB / 447.7 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.467e-05/0.08779, allocations: 4 kB / 447.7 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.08781, allocations: 0 / 447.7 MB, free: 11.12 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.547e-05/0.08787, allocations: 125.8 kB / 447.8 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.651e-05/0.08792, allocations: 41.59 kB / 447.9 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.703e-05/0.08795, allocations: 15.83 kB / 447.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.08796, allocations: 0 / 447.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.08797, allocations: 0 / 447.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.08798, allocations: 0 / 447.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.0881, allocations: 173.6 kB / 448.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.08811, allocations: 0 / 448.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.424e-05/0.08815, allocations: 7.984 kB / 448.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.08816, allocations: 4.031 kB / 448.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.08818, allocations: 4 kB / 448.1 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.08818, allocations: 3.938 kB / 448.1 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.08819, allocations: 0 / 448.1 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001283/0.08832, allocations: 172.2 kB / 448.2 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.682e-05/0.08837, allocations: 89 kB / 448.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.08839, allocations: 4 kB / 448.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.266e-05/0.08846, allocations: 4 kB / 448.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.155e-05/0.08849, allocations: 4 kB / 448.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.0885, allocations: 0 / 448.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.091e-05/0.08856, allocations: 111.2 kB / 448.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08857, allocations: 0 / 448.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001972/0.08877, allocations: 4 kB / 448.5 MB, free: 10.27 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 6.269e-05/0.08884, allocations: 95.28 kB / 448.6 MB, free: 10.17 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001145/0.08896, allocations: 27.92 kB / 448.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.08897, allocations: 0 / 448.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.522e-05/0.08901, allocations: 11.98 kB / 448.6 MB, free: 10.13 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.08935, allocations: 28.14 kB / 448.6 MB, free: 10.1 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002765/0.08964, allocations: 219.1 kB / 448.8 MB, free: 9.852 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001228/0.08977, allocations: 0.6901 MB / 449.5 MB, free: 9.137 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.421e-05/0.0898, allocations: 7.438 kB / 449.5 MB, free: 9.129 MB / 298.7 MB Notification: Performance of SimCode: time 4.21e-07/0.08981, allocations: 8 kB / 449.5 MB, free: 9.121 MB / 298.7 MB Notification: Performance of Templates: time 0.001687/0.0915, allocations: 0.7533 MB / 450.3 MB, free: 8.371 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches