Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.001513/0.001513, allocations: 186.2 kB / 16.44 MB, free: 5.672 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.902/1.902, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.001103/0.001103, allocations: 91.28 kB / 270.9 MB, free: 8.371 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.09971/0.09971, allocations: 12.59 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008418/0.0008419, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08819/0.08907, allocations: 50.36 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4322/0.5213, allocations: 78.32 MB / 0.5085 GB, free: 12.81 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002712/0.5216, allocations: 72.36 kB / 0.5085 GB, free: 12.81 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005413/0.5271, allocations: 1.453 MB / 0.5099 GB, free: 12.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.5271, allocations: 3.875 kB / 0.51 GB, free: 12.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.5271, allocations: 0 / 0.51 GB, free: 12.34 MB / 330.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.0003908/0.5275, allocations: 372.5 kB / 0.5103 GB, free: 11.96 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.5276, allocations: 11.59 kB / 0.5103 GB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.902e-05/0.5276, allocations: 7.844 kB / 0.5103 GB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001768/0.5278, allocations: 190.5 kB / 0.5105 GB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.5279, allocations: 11 kB / 0.5105 GB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.684e-05/0.5279, allocations: 0 / 0.5105 GB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003053/0.5282, allocations: 110.3 kB / 0.5106 GB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.5282, allocations: 0 / 0.5106 GB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.5282, allocations: 3.938 kB / 0.5106 GB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.5283, allocations: 0 / 0.5106 GB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001202/0.5284, allocations: 22.86 kB / 0.5106 GB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003714/0.5288, allocations: 270.7 kB / 0.5109 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.565e-05/0.5289, allocations: 48.64 kB / 0.511 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.5289, allocations: 3.562 kB / 0.511 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.965e-05/0.529, allocations: 34.56 kB / 0.511 GB, free: 11.26 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.553e-06/0.529, allocations: 0 / 0.511 GB, free: 11.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003163/0.5293, allocations: 76.11 kB / 0.5111 GB, free: 11.21 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.5294, allocations: 84.98 kB / 0.5111 GB, free: 11.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.5295, allocations: 130.7 kB / 0.5113 GB, free: 11.01 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.041e-05/0.5295, allocations: 29.33 kB / 0.5113 GB, free: 10.98 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.059e-05/0.5296, allocations: 157.9 kB / 0.5114 GB, free: 10.83 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.631e-05/0.5296, allocations: 3.906 kB / 0.5114 GB, free: 10.83 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.779e-06/0.5296, allocations: 0 / 0.5114 GB, free: 10.83 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.697e-05/0.5297, allocations: 318.7 kB / 0.5118 GB, free: 10.51 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.187e-05/0.5297, allocations: 7.828 kB / 0.5118 GB, free: 10.51 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.296e-05/0.5298, allocations: 24.88 kB / 0.5118 GB, free: 10.49 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.833e-05/0.5299, allocations: 11.86 kB / 0.5118 GB, free: 10.48 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.5299, allocations: 0 / 0.5118 GB, free: 10.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002043/0.5301, allocations: 60.81 kB / 0.5119 GB, free: 10.44 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.5301, allocations: 7.625 kB / 0.5119 GB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.5302, allocations: 3.938 kB / 0.5119 GB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.5302, allocations: 0 / 0.5119 GB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.733e-05/0.5303, allocations: 7.859 kB / 0.5119 GB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.5303, allocations: 3.875 kB / 0.5119 GB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.866e-05/0.5304, allocations: 0 / 0.5119 GB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.287e-06/0.5304, allocations: 3.75 kB / 0.5119 GB, free: 10.44 MB / 330.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.587e-05/0.5305, allocations: 129.1 kB / 0.512 GB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.808e-05/0.5306, allocations: 44.48 kB / 0.512 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.833e-05/0.5306, allocations: 11 kB / 0.5121 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.5306, allocations: 3.938 kB / 0.5121 GB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.5307, allocations: 0 / 0.5121 GB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.5307, allocations: 0 / 0.5121 GB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001744/0.5308, allocations: 176.5 kB / 0.5122 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.5309, allocations: 3.984 kB / 0.5122 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.69e-05/0.5309, allocations: 7.75 kB / 0.5122 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.349e-06/0.531, allocations: 3.906 kB / 0.5122 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-06/0.531, allocations: 4.031 kB / 0.5122 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.531, allocations: 0 / 0.5122 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.531, allocations: 0 / 0.5122 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002052/0.5312, allocations: 180 kB / 0.5124 GB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.886e-05/0.5313, allocations: 92.16 kB / 0.5125 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.042e-05/0.5313, allocations: 0 / 0.5125 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.593e-05/0.5314, allocations: 7.75 kB / 0.5125 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.587e-05/0.5315, allocations: 3.812 kB / 0.5125 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/0.5315, allocations: 0 / 0.5125 GB, free: 9.77 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.85e-05/0.5316, allocations: 107.4 kB / 0.5126 GB, free: 9.688 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5316, allocations: 0 / 0.5126 GB, free: 9.688 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002781/0.5319, allocations: 7.719 kB / 0.5126 GB, free: 9.688 MB / 330.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 (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.145e-05/0.532, allocations: 98.8 kB / 0.5127 GB, free: 9.594 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001722/0.5321, allocations: 23.23 kB / 0.5127 GB, free: 9.59 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.5321, allocations: 0 / 0.5127 GB, free: 9.59 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.575e-05/0.5322, allocations: 19.39 kB / 0.5128 GB, free: 9.582 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003167/0.5326, allocations: 13.34 kB / 0.5128 GB, free: 9.578 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003774/0.5329, allocations: 214.6 kB / 0.513 GB, free: 9.371 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001452/0.5331, allocations: 0.6919 MB / 0.5137 GB, free: 8.668 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.316e-05/0.5332, allocations: 11.42 kB / 0.5137 GB, free: 8.66 MB / 330.7 MB Notification: Performance of SimCode: time 7.82e-07/0.5332, allocations: 4 kB / 0.5137 GB, free: 8.656 MB / 330.7 MB Notification: Performance of Templates: time 0.002375/0.5355, allocations: 0.7293 MB / 0.5144 GB, free: 8.297 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches