Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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 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 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 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_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToTrigger.y|sample.y|triggeredSampler.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToTrigger.y|sample.y|triggeredSampler.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 99.56 kB / 16.02 MB, free: 6.316 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.00145/0.00145, allocations: 196 kB / 16.95 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.702/1.702, allocations: 205.1 MB / 222.8 MB, free: 12.45 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08151/0.08151, allocations: 12.58 MB / 282.7 MB, free: 15.65 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001681/0.001682, allocations: 91.86 kB / 343 MB, free: 3.297 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2923, allocations: 49.38 MB / 392.4 MB, free: 49.19 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003926/0.2963, allocations: 1.686 MB / 394.1 MB, free: 48.04 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001084/0.2974, allocations: 0.5356 MB / 394.6 MB, free: 47.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.2976, allocations: 1.594 kB / 394.6 MB, free: 47.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.222e-05/0.2976, allocations: 5.203 kB / 394.6 MB, free: 47.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001592/0.2978, allocations: 16.47 kB / 394.6 MB, free: 47.64 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003975/0.2982, allocations: 46.22 kB / 394.7 MB, free: 47.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001835/0.2984, allocations: 67.19 kB / 394.7 MB, free: 47.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001838/0.2986, allocations: 22.92 kB / 394.8 MB, free: 47.58 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.2987, allocations: 26.66 kB / 394.8 MB, free: 47.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.2988, allocations: 33.11 kB / 394.8 MB, free: 47.55 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.16e-05/0.2988, allocations: 5.531 kB / 394.8 MB, free: 47.55 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.226e-05/0.2989, allocations: 4.406 kB / 394.8 MB, free: 47.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.879e-05/0.299, allocations: 25.58 kB / 394.8 MB, free: 47.53 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.024e-05/0.2991, allocations: 38.03 kB / 394.9 MB, free: 47.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002232/0.2993, allocations: 75.38 kB / 395 MB, free: 47.47 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.2993, allocations: 0 / 395 MB, free: 47.47 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.2993, allocations: 1.094 kB / 395 MB, free: 47.47 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.2993, allocations: 3.938 kB / 395 MB, free: 47.46 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007733/0.3001, allocations: 400.2 kB / 395.4 MB, free: 47.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.301e-05/0.3002, allocations: 8.469 kB / 395.4 MB, free: 47.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.154e-05/0.3003, allocations: 10.91 kB / 395.4 MB, free: 47.06 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/0.3005, allocations: 202.2 kB / 395.6 MB, free: 46.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.3006, allocations: 3.594 kB / 395.6 MB, free: 46.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.352e-05/0.3006, allocations: 9.219 kB / 395.6 MB, free: 46.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004501/0.3011, allocations: 140 kB / 395.7 MB, free: 46.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.3011, allocations: 4.734 kB / 395.7 MB, free: 46.74 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.3011, allocations: 5.094 kB / 395.7 MB, free: 46.74 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.779e-06/0.3011, allocations: 1.031 kB / 395.7 MB, free: 46.74 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001266/0.3013, allocations: 36.27 kB / 395.8 MB, free: 46.73 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005465/0.3018, allocations: 305.4 kB / 396.1 MB, free: 46.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002502/0.3021, allocations: 155.7 kB / 396.2 MB, free: 46.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.467e-05/0.3022, allocations: 38.02 kB / 396.3 MB, free: 46.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.3022, allocations: 1.859 kB / 396.3 MB, free: 46.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001575/0.3024, allocations: 66.98 kB / 396.3 MB, free: 46.19 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.443e-06/0.3024, allocations: 0 / 396.3 MB, free: 46.19 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003632/0.3028, allocations: 116.7 kB / 396.4 MB, free: 46.13 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.295e-05/0.3028, allocations: 89.61 kB / 396.5 MB, free: 46.03 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.303, allocations: 145.8 kB / 396.7 MB, free: 45.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.303, allocations: 30.92 kB / 396.7 MB, free: 45.88 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.732e-05/0.303, allocations: 95.53 kB / 396.8 MB, free: 45.79 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.384e-05/0.3031, allocations: 16.97 kB / 396.8 MB, free: 45.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.055e-05/0.3031, allocations: 31.08 kB / 396.8 MB, free: 45.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.153e-05/0.3032, allocations: 324.3 kB / 397.1 MB, free: 45.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.378e-05/0.3033, allocations: 24.64 kB / 397.2 MB, free: 45.42 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.447e-05/0.3034, allocations: 57.41 kB / 397.2 MB, free: 45.36 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001419/0.3035, allocations: 89.86 kB / 397.3 MB, free: 45.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3035, allocations: 5.094 kB / 397.3 MB, free: 45.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002221/0.3038, allocations: 115 kB / 397.4 MB, free: 45.22 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.3038, allocations: 7.438 kB / 397.4 MB, free: 45.22 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3038, allocations: 0 / 397.4 MB, free: 45.22 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.3038, allocations: 2.281 kB / 397.4 MB, free: 45.22 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.005e-05/0.3039, allocations: 13.11 kB / 397.5 MB, free: 45.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.3039, allocations: 2.188 kB / 397.5 MB, free: 45.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.45e-05/0.304, allocations: 8.375 kB / 397.5 MB, free: 45.22 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.304, allocations: 4.344 kB / 397.5 MB, free: 45.22 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler.y,$PRE.triggeredSampler.y,clockToTrigger.y3,$PRE.clockToTrigger.y3,triggeredSampler.trigger,$whenCondition1,$CLKPRE.clockToTrigger.y2,clockToTrigger.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.0001035/0.3041, allocations: 141.2 kB / 397.6 MB, free: 45.08 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.966e-05/0.3042, allocations: 51.89 kB / 397.7 MB, free: 45.04 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.31e-05/0.3043, allocations: 17.8 kB / 397.7 MB, free: 45.03 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.3043, allocations: 1.188 kB / 397.7 MB, free: 45.03 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.3043, allocations: 3.938 kB / 397.7 MB, free: 45.03 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.3043, allocations: 1.672 kB / 397.7 MB, free: 45.03 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003864/0.3047, allocations: 345.8 kB / 398 MB, free: 44.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3047, allocations: 0 / 398 MB, free: 44.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.143e-05/0.3048, allocations: 14.17 kB / 398 MB, free: 44.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.3048, allocations: 1.125 kB / 398 MB, free: 44.7 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.3048, allocations: 3 kB / 398 MB, free: 44.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.3048, allocations: 0.6094 kB / 398 MB, free: 44.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.3048, allocations: 9.156 kB / 398 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002258/0.3051, allocations: 199.2 kB / 398.2 MB, free: 44.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.274e-05/0.3051, allocations: 100.4 kB / 398.3 MB, free: 44.42 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.896e-05/0.3052, allocations: 8.938 kB / 398.3 MB, free: 44.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.2e-05/0.3052, allocations: 6.266 kB / 398.4 MB, free: 44.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.429e-05/0.3053, allocations: 7.219 kB / 398.4 MB, free: 44.4 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.3053, allocations: 6.312 kB / 398.4 MB, free: 44.4 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.171e-05/0.3054, allocations: 112.8 kB / 398.5 MB, free: 44.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3054, allocations: 0 / 398.5 MB, free: 44.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002494/0.3057, allocations: 12.25 kB / 398.5 MB, free: 44.3 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 (clockToTrigger.y2,triggeredSampler.trigger,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001265/0.3058, allocations: 96.66 kB / 398.6 MB, free: 44.21 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002353/0.306, allocations: 74.77 kB / 398.7 MB, free: 44.18 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.306, allocations: 0 / 398.7 MB, free: 44.18 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.315e-05/0.3061, allocations: 17.38 kB / 398.7 MB, free: 44.18 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000355/0.3065, allocations: 30.23 kB / 398.7 MB, free: 44.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004415/0.3069, allocations: 233 kB / 398.9 MB, free: 43.96 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001745/0.3071, allocations: 0.7039 MB / 399.6 MB, free: 43.25 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.142e-05/0.3072, allocations: 4.016 kB / 399.6 MB, free: 43.24 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.452e-05/0.3072, allocations: 20.73 kB / 399.7 MB, free: 43.23 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.3072, allocations: 0 / 399.7 MB, free: 43.23 MB / 318.1 MB Notification: Performance of Templates: time 0.00345/0.3107, allocations: 0.7812 MB / 400.4 MB, free: 42.85 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches