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.001206/0.001206, allocations: 175.3 kB / 16.77 MB, free: 5.023 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.714/1.714, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007707/0.0007711, allocations: 87.88 kB / 271.3 MB, free: 8.246 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.08112/0.08112, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000401/0.0004011, allocations: 16 kB / 392.6 MB, free: 66.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09305/0.09347, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.001714/0.09526, allocations: 1.325 MB / 444.3 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007077/0.09599, allocations: 0.5078 MB / 444.8 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.074e-05/0.0961, allocations: 0 / 444.8 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.532e-05/0.09615, allocations: 7.922 kB / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.09629, allocations: 11.94 kB / 444.8 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002922/0.09659, allocations: 55.81 kB / 444.9 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.771e-05/0.09669, allocations: 55.78 kB / 444.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.09681, allocations: 28.16 kB / 445 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.99e-05/0.09689, allocations: 23.86 kB / 445 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.467e-05/0.09695, allocations: 27.84 kB / 445 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.685e-05/0.09698, allocations: 0 / 445 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.201e-05/0.097, allocations: 4 kB / 445 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.585e-05/0.09704, allocations: 11.98 kB / 445 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.239e-05/0.09709, allocations: 61.44 kB / 445.1 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.57e-05/0.09717, allocations: 43.91 kB / 445.1 MB, free: 13.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.09718, allocations: 4 kB / 445.1 MB, free: 13.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.09719, allocations: 0 / 445.1 MB, free: 13.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.09719, allocations: 0 / 445.1 MB, free: 13.93 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.0004388/0.09764, allocations: 375.5 kB / 445.5 MB, free: 13.51 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.09768, allocations: 12.03 kB / 445.5 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.826e-05/0.09773, allocations: 16.75 kB / 445.5 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001441/0.09788, allocations: 208 kB / 445.7 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.0979, allocations: 8.375 kB / 445.7 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.263e-05/0.09792, allocations: 4.375 kB / 445.7 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00026/0.09818, allocations: 141.3 kB / 445.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.0982, allocations: 0 / 445.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.09822, allocations: 0 / 445.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.09823, allocations: 4 kB / 445.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001061/0.09834, allocations: 35.97 kB / 445.9 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003843/0.09873, allocations: 309.5 kB / 446.2 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001907/0.09894, allocations: 158.2 kB / 446.4 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.757e-05/0.09901, allocations: 45.73 kB / 446.4 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.09905, allocations: 4 kB / 446.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001328/0.09919, allocations: 59.39 kB / 446.5 MB, free: 12.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.553e-06/0.0992, allocations: 4 kB / 446.5 MB, free: 12.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002806/0.09948, allocations: 125.5 kB / 446.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/0.09954, allocations: 89.02 kB / 446.7 MB, free: 12.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.729e-05/0.09963, allocations: 141.6 kB / 446.8 MB, free: 11.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/0.09965, allocations: 33.7 kB / 446.9 MB, free: 11.94 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.343e-05/0.09969, allocations: 88.22 kB / 446.9 MB, free: 11.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.09971, allocations: 23.78 kB / 447 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.19e-06/0.09972, allocations: 0 / 447 MB, free: 11.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.619e-05/0.09979, allocations: 330.7 kB / 447.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.064e-05/0.09985, allocations: 27.98 kB / 447.3 MB, free: 11.46 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.278e-05/0.09992, allocations: 65.12 kB / 447.4 MB, free: 11.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/0.1, allocations: 81.08 kB / 447.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1001, allocations: 0 / 447.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001735/0.1002, allocations: 121.5 kB / 447.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.1003, allocations: 4 kB / 447.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.1003, allocations: 4 kB / 447.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.1003, allocations: 0 / 447.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.694e-05/0.1004, allocations: 20.23 kB / 447.6 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.1004, allocations: 0 / 447.6 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.178e-05/0.1004, allocations: 12 kB / 447.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.1005, allocations: 11.98 kB / 447.6 MB, free: 11.11 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 7.191e-05/0.1005, allocations: 133.8 kB / 447.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.09e-05/0.1006, allocations: 57.53 kB / 447.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.894e-05/0.1006, allocations: 12.31 kB / 447.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.1006, allocations: 0 / 447.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1006, allocations: 4 kB / 447.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.1007, allocations: 0 / 447.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002622/0.1009, allocations: 354.3 kB / 448.2 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.1009, allocations: 3.938 kB / 448.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.14e-05/0.101, allocations: 12 kB / 448.2 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.101, allocations: 0 / 448.2 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.759e-06/0.101, allocations: 4 kB / 448.2 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.101, allocations: 3.984 kB / 448.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.101, allocations: 7.938 kB / 448.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001712/0.1012, allocations: 200.2 kB / 448.4 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.422e-05/0.1013, allocations: 93 kB / 448.5 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.859e-05/0.1013, allocations: 4 kB / 448.5 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.839e-05/0.1014, allocations: 7.984 kB / 448.5 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.964e-05/0.1014, allocations: 7.938 kB / 448.5 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-06/0.1014, allocations: 4 kB / 448.5 MB, free: 10.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.081e-05/0.1015, allocations: 107.2 kB / 448.6 MB, free: 10 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1015, allocations: 4 kB / 448.6 MB, free: 10 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002192/0.1017, allocations: 16 kB / 448.6 MB, free: 9.984 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 8.613e-05/0.1018, allocations: 95.25 kB / 448.7 MB, free: 9.883 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001727/0.102, allocations: 75.88 kB / 448.8 MB, free: 9.809 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.102, allocations: 0 / 448.8 MB, free: 9.809 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.791e-05/0.1021, allocations: 24.3 kB / 448.8 MB, free: 9.785 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003141/0.1024, allocations: 32.33 kB / 448.9 MB, free: 9.754 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003421/0.1027, allocations: 259.6 kB / 449.1 MB, free: 9.465 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001343/0.1029, allocations: 0.7043 MB / 449.8 MB, free: 8.734 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.185e-05/0.1029, allocations: 11.44 kB / 449.8 MB, free: 8.723 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1029, allocations: 0 / 449.8 MB, free: 8.723 MB / 298.7 MB Notification: Performance of Templates: time 0.002087/0.105, allocations: 1.031 MB / 450.9 MB, free: 7.695 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