Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToTrigger.y|sample.y|triggeredSampler.y",fileNamePrefix="Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001122/0.001122, allocations: 174.9 kB / 16.45 MB, free: 5.684 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.545/1.545, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0008233/0.0008232, allocations: 90.3 kB / 270.9 MB, free: 8.359 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.0714/0.0714, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003836/0.0003836, allocations: 16 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06908/0.06948, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.001317/0.07084, allocations: 1.313 MB / 443.7 MB, free: 15.13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006099/0.07146, allocations: 0.5311 MB / 444.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.178e-05/0.07155, allocations: 4 kB / 444.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.689e-05/0.07159, allocations: 3.938 kB / 444.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001064/0.0717, allocations: 7.938 kB / 444.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002426/0.07195, allocations: 55.88 kB / 444.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.091e-05/0.07204, allocations: 55.84 kB / 444.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.618e-05/0.07213, allocations: 20.16 kB / 444.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.772e-05/0.07219, allocations: 23.86 kB / 444.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.056e-05/0.07225, allocations: 31.84 kB / 444.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.537e-05/0.07227, allocations: 4 kB / 444.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.259e-05/0.07229, allocations: 0 / 444.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.048e-05/0.07233, allocations: 19.92 kB / 444.4 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.46e-05/0.07236, allocations: 41.58 kB / 444.5 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.622e-05/0.07243, allocations: 47.89 kB / 444.5 MB, free: 14.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.07244, allocations: 0 / 444.5 MB, free: 14.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.07245, allocations: 0 / 444.5 MB, free: 14.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.07245, allocations: 0 / 444.5 MB, free: 14.28 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003641/0.07282, allocations: 379.3 kB / 444.9 MB, free: 13.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.798e-05/0.07286, allocations: 8.031 kB / 444.9 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.689e-05/0.0729, allocations: 15.81 kB / 444.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001346/0.07304, allocations: 202.7 kB / 445.1 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.07306, allocations: 0 / 445.1 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/0.07308, allocations: 8 kB / 445.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002495/0.07333, allocations: 149 kB / 445.3 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.07335, allocations: 0 / 445.3 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.07337, allocations: 4 kB / 445.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.07338, allocations: 0 / 445.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001028/0.07349, allocations: 31.98 kB / 445.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003705/0.07386, allocations: 313.6 kB / 445.6 MB, free: 13.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000175/0.07405, allocations: 158.2 kB / 445.8 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.513e-05/0.07413, allocations: 41.73 kB / 445.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.948e-05/0.07416, allocations: 4 kB / 445.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001236/0.07429, allocations: 67.39 kB / 445.9 MB, free: 12.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.0743, allocations: 0 / 445.9 MB, free: 12.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002592/0.07456, allocations: 129.4 kB / 446 MB, free: 12.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.07461, allocations: 89.06 kB / 446.1 MB, free: 12.47 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.888e-05/0.07469, allocations: 141.6 kB / 446.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.518e-06/0.07471, allocations: 25.7 kB / 446.3 MB, free: 12.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.117e-05/0.07475, allocations: 100.1 kB / 446.4 MB, free: 12.19 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.659e-05/0.07477, allocations: 19.88 kB / 446.4 MB, free: 12.17 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-06/0.07478, allocations: 3.938 kB / 446.4 MB, free: 12.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.897e-05/0.07482, allocations: 322.8 kB / 446.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.051e-05/0.07489, allocations: 23.98 kB / 446.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.52e-05/0.07496, allocations: 57.14 kB / 446.8 MB, free: 11.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.588e-05/0.07503, allocations: 32 kB / 446.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.07504, allocations: 4 kB / 446.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001736/0.07522, allocations: 113.4 kB / 446.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.07524, allocations: 8.156 kB / 446.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.07525, allocations: 4 kB / 446.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.07527, allocations: 0 / 446.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.791e-05/0.07535, allocations: 23.88 kB / 447 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.07537, allocations: 4 kB / 447 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.463e-05/0.07543, allocations: 8 kB / 447 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.07544, allocations: 4 kB / 447 MB, free: 11.54 MB / 298.7 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 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,triggeredSampler.trigger,$PRE.clockToTrigger.y3,clockToTrigger.y3) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.555e-05/0.07551, allocations: 134.6 kB / 447.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.892e-05/0.07557, allocations: 53.73 kB / 447.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.701e-05/0.0756, allocations: 20.33 kB / 447.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.07561, allocations: 4 kB / 447.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.07562, allocations: 3.953 kB / 447.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.07563, allocations: 0 / 447.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002537/0.07589, allocations: 350.3 kB / 447.5 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.0759, allocations: 4 kB / 447.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.716e-05/0.07596, allocations: 19.98 kB / 447.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.07597, allocations: 0 / 447.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.305e-06/0.07599, allocations: 3.953 kB / 447.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.07599, allocations: 4.375 kB / 447.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.076, allocations: 0 / 447.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001664/0.07617, allocations: 208.2 kB / 447.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.035e-05/0.07622, allocations: 93 kB / 447.8 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/0.07625, allocations: 8 kB / 447.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.545e-05/0.07633, allocations: 7.953 kB / 447.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.561e-05/0.07636, allocations: 3.984 kB / 447.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.124e-06/0.07637, allocations: 4 kB / 447.9 MB, free: 10.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.603e-05/0.07642, allocations: 107.2 kB / 448 MB, free: 10.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07643, allocations: 0 / 448 MB, free: 10.43 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002147/0.07665, allocations: 16 kB / 448 MB, free: 10.41 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: 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 (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 6.349e-05/0.07672, allocations: 95.25 kB / 448.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001672/0.07689, allocations: 75.84 kB / 448.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.07691, allocations: 0 / 448.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.415e-05/0.07696, allocations: 19.98 kB / 448.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.07726, allocations: 28.27 kB / 448.2 MB, free: 10.19 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000303/0.07757, allocations: 255.7 kB / 448.5 MB, free: 9.902 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001035/0.07769, allocations: 0.7043 MB / 449.2 MB, free: 9.172 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.019e-05/0.07773, allocations: 11.44 kB / 449.2 MB, free: 9.16 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.07773, allocations: 96 / 449.2 MB, free: 9.16 MB / 298.7 MB Notification: Performance of Templates: time 0.002015/0.07975, allocations: 1.043 MB / 450.2 MB, free: 8.121 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches