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.001285/0.001285, allocations: 101.5 kB / 16.31 MB, free: 6.391 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.001349/0.001349, allocations: 188.5 kB / 17.24 MB, free: 5.922 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.634/1.634, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.08747/0.08747, allocations: 12.59 MB / 283.1 MB, free: 15.48 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.001876/0.001876, allocations: 92.67 kB / 343.5 MB, free: 2.949 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.3076, allocations: 49.38 MB / 392.9 MB, free: 49.21 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003779/0.3114, allocations: 1.621 MB / 394.5 MB, free: 48.1 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001118/0.3126, allocations: 0.5453 MB / 395 MB, free: 47.72 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.812e-05/0.3127, allocations: 2.031 kB / 395 MB, free: 47.72 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.41e-05/0.3128, allocations: 9.375 kB / 395.1 MB, free: 47.71 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001575/0.3129, allocations: 13.05 kB / 395.1 MB, free: 47.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003839/0.3133, allocations: 64.64 kB / 395.1 MB, free: 47.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001428/0.3135, allocations: 64.06 kB / 395.2 MB, free: 47.63 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.3136, allocations: 22.31 kB / 395.2 MB, free: 47.62 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.816e-05/0.3137, allocations: 34.86 kB / 395.3 MB, free: 47.61 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.863e-05/0.3139, allocations: 32.92 kB / 395.3 MB, free: 47.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.713e-05/0.3139, allocations: 6.219 kB / 395.3 MB, free: 47.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.93e-05/0.3139, allocations: 3.219 kB / 395.3 MB, free: 47.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.455e-05/0.314, allocations: 19.19 kB / 395.3 MB, free: 47.58 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.698e-05/0.3141, allocations: 37.3 kB / 395.3 MB, free: 47.55 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000155/0.3142, allocations: 75.81 kB / 395.4 MB, free: 47.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3142, allocations: 0.9844 kB / 395.4 MB, free: 47.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3143, allocations: 0 / 395.4 MB, free: 47.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.3143, allocations: 0 / 395.4 MB, free: 47.52 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.0005334/0.3148, allocations: 398.3 kB / 395.8 MB, free: 47.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.3149, allocations: 8.219 kB / 395.8 MB, free: 47.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.673e-05/0.3149, allocations: 11.47 kB / 395.8 MB, free: 47.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002146/0.3152, allocations: 202.5 kB / 396 MB, free: 46.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.3152, allocations: 4.109 kB / 396 MB, free: 46.89 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.042e-05/0.3152, allocations: 8.812 kB / 396 MB, free: 46.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004146/0.3156, allocations: 139.3 kB / 396.2 MB, free: 46.8 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.3157, allocations: 5.125 kB / 396.2 MB, free: 46.79 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.3157, allocations: 4 kB / 396.2 MB, free: 46.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.3157, allocations: 6.219 kB / 396.2 MB, free: 46.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001513/0.3159, allocations: 27.89 kB / 396.2 MB, free: 46.78 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005384/0.3164, allocations: 309.2 kB / 396.5 MB, free: 46.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002582/0.3167, allocations: 151.7 kB / 396.7 MB, free: 46.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.3168, allocations: 37 kB / 396.7 MB, free: 46.3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.3169, allocations: 10.83 kB / 396.7 MB, free: 46.29 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001783/0.317, allocations: 74.39 kB / 396.8 MB, free: 46.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.764e-06/0.3171, allocations: 0 / 396.8 MB, free: 46.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.000412/0.3175, allocations: 116.5 kB / 396.9 MB, free: 46.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.769e-05/0.3175, allocations: 84.16 kB / 397 MB, free: 46.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001485/0.3177, allocations: 148.7 kB / 397.1 MB, free: 45.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.3177, allocations: 27.14 kB / 397.2 MB, free: 45.92 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.682e-05/0.3178, allocations: 99.95 kB / 397.3 MB, free: 45.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.135e-05/0.3178, allocations: 12.67 kB / 397.3 MB, free: 45.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.919e-05/0.3179, allocations: 32.36 kB / 397.3 MB, free: 45.79 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.771e-05/0.318, allocations: 320.5 kB / 397.6 MB, free: 45.47 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.854e-05/0.3181, allocations: 22.7 kB / 397.6 MB, free: 45.46 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.916e-05/0.3182, allocations: 64.77 kB / 397.7 MB, free: 45.4 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.3184, allocations: 88.52 kB / 397.8 MB, free: 45.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.3184, allocations: 0 / 397.8 MB, free: 45.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002883/0.3187, allocations: 112.7 kB / 397.9 MB, free: 45.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.3187, allocations: 6.375 kB / 397.9 MB, free: 45.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.3188, allocations: 0 / 397.9 MB, free: 45.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.3188, allocations: 4.094 kB / 397.9 MB, free: 45.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.3189, allocations: 13.14 kB / 397.9 MB, free: 45.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.3189, allocations: 5.938 kB / 397.9 MB, free: 45.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.526e-05/0.319, allocations: 11.69 kB / 397.9 MB, free: 45.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.3191, allocations: 3.531 kB / 397.9 MB, free: 45.24 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.0001227/0.3192, allocations: 139.6 kB / 398.1 MB, free: 45.1 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.369e-05/0.3193, allocations: 51.86 kB / 398.1 MB, free: 45.06 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.295e-05/0.3193, allocations: 15.86 kB / 398.1 MB, free: 45.05 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.3193, allocations: 1.812 kB / 398.1 MB, free: 45.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3193, allocations: 0 / 398.1 MB, free: 45.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.3194, allocations: 1.812 kB / 398.1 MB, free: 45.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003863/0.3198, allocations: 348 kB / 398.5 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.3198, allocations: 1.25 kB / 398.5 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.904e-05/0.3199, allocations: 11.14 kB / 398.5 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.3199, allocations: 1.062 kB / 398.5 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.3199, allocations: 1.219 kB / 398.5 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.3199, allocations: 1.031 kB / 398.5 MB, free: 44.69 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.3199, allocations: 8.938 kB / 398.5 MB, free: 44.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002359/0.3202, allocations: 201 kB / 398.7 MB, free: 44.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.758e-05/0.3202, allocations: 99.12 kB / 398.8 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.199e-05/0.3202, allocations: 9.062 kB / 398.8 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.875e-05/0.3203, allocations: 6.312 kB / 398.8 MB, free: 44.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.063e-05/0.3204, allocations: 10.08 kB / 398.8 MB, free: 44.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.715e-06/0.3204, allocations: 2.469 kB / 398.8 MB, free: 44.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.197e-05/0.3204, allocations: 111.1 kB / 398.9 MB, free: 44.29 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3205, allocations: 4 kB / 398.9 MB, free: 44.28 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002351/0.3207, allocations: 15.88 kB / 399 MB, free: 44.28 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 8.124e-05/0.3208, allocations: 92.72 kB / 399 MB, free: 44.19 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002043/0.321, allocations: 71.06 kB / 399.1 MB, free: 44.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.321, allocations: 0 / 399.1 MB, free: 44.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.187e-05/0.3211, allocations: 20.89 kB / 399.1 MB, free: 44.15 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.3214, allocations: 33.7 kB / 399.2 MB, free: 44.13 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003932/0.3218, allocations: 203.8 kB / 399.4 MB, free: 43.96 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001901/0.322, allocations: 0.7027 MB / 400.1 MB, free: 43.25 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.362e-05/0.3221, allocations: 9.875 kB / 400.1 MB, free: 43.24 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.206e-05/0.3221, allocations: 11.84 kB / 400.1 MB, free: 43.24 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3221, allocations: 0 / 400.1 MB, free: 43.24 MB / 318.1 MB Notification: Performance of Templates: time 0.00324/0.3254, allocations: 0.8035 MB / 400.9 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches