Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.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/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/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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001515/0.001515, allocations: 181.6 kB / 17.46 MB, free: 4.359 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.554/2.554, allocations: 205.4 MB / 223.6 MB, free: 9.012 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.001081/0.001081, allocations: 88.98 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1149/0.1149, allocations: 12.21 MB / 332.4 MB, free: 11.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004991/0.0004992, allocations: 12 kB / 392.7 MB, free: 67.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1357, allocations: 50.29 MB / 443 MB, free: 16.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5536/0.6893, allocations: 78.33 MB / 0.5091 GB, free: 13.11 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003769/0.6898, allocations: 75.89 kB / 0.5092 GB, free: 13.11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01143/0.7013, allocations: 2.529 MB / 0.5117 GB, free: 12.35 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.849e-06/0.7014, allocations: 0 / 0.5117 GB, free: 12.35 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.307e-05/0.7014, allocations: 3.844 kB / 0.5117 GB, free: 12.35 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.0005281/0.702, allocations: 373.1 kB / 0.512 GB, free: 11.96 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.363e-05/0.702, allocations: 11.47 kB / 0.512 GB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.485e-05/0.7021, allocations: 8.75 kB / 0.512 GB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.7024, allocations: 194.5 kB / 0.5122 GB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.7024, allocations: 8.016 kB / 0.5122 GB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.787e-05/0.7025, allocations: 8.25 kB / 0.5122 GB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004876/0.703, allocations: 111.1 kB / 0.5123 GB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.703, allocations: 192 / 0.5123 GB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.154e-05/0.703, allocations: 3.938 kB / 0.5124 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.7031, allocations: 3.812 kB / 0.5124 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001262/0.7032, allocations: 23.45 kB / 0.5124 GB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004775/0.7037, allocations: 263.9 kB / 0.5126 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001416/0.7039, allocations: 61.2 kB / 0.5127 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.338e-05/0.7039, allocations: 21.38 kB / 0.5127 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.704, allocations: 0 / 0.5127 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.704, allocations: 30.56 kB / 0.5127 GB, free: 11.23 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 3.166e-06/0.704, allocations: 0 / 0.5127 GB, free: 11.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003686/0.7044, allocations: 82.86 kB / 0.5128 GB, free: 11.18 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.521e-05/0.7045, allocations: 81.05 kB / 0.5129 GB, free: 11.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001797/0.7047, allocations: 136.7 kB / 0.513 GB, free: 10.97 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.444e-05/0.7047, allocations: 29.55 kB / 0.5131 GB, free: 10.94 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.956e-05/0.7048, allocations: 86.95 kB / 0.5131 GB, free: 10.86 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.7048, allocations: 4 kB / 0.5131 GB, free: 10.86 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.44e-06/0.7049, allocations: 0 / 0.5131 GB, free: 10.86 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.682e-05/0.705, allocations: 322.2 kB / 0.5134 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.415e-05/0.705, allocations: 7.688 kB / 0.5135 GB, free: 10.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.129e-05/0.7051, allocations: 21.39 kB / 0.5135 GB, free: 10.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001377/0.7053, allocations: 32.36 kB / 0.5135 GB, free: 10.5 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.7053, allocations: 3.875 kB / 0.5135 GB, free: 10.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002017/0.7055, allocations: 64.19 kB / 0.5136 GB, free: 10.45 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.7056, allocations: 3.844 kB / 0.5136 GB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.7056, allocations: 4.062 kB / 0.5136 GB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.7056, allocations: 3.844 kB / 0.5136 GB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.7057, allocations: 11.77 kB / 0.5136 GB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.7058, allocations: 0 / 0.5136 GB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.432e-05/0.7058, allocations: 3.812 kB / 0.5136 GB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.7059, allocations: 0 / 0.5136 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 0.0001518/0.706, allocations: 133.7 kB / 0.5137 GB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.26e-05/0.7061, allocations: 37.36 kB / 0.5138 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.765e-05/0.7062, allocations: 11.72 kB / 0.5138 GB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.7062, allocations: 0 / 0.5138 GB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.7062, allocations: 3.875 kB / 0.5138 GB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.7062, allocations: 0 / 0.5138 GB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002349/0.7065, allocations: 172.2 kB / 0.5139 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.7065, allocations: 0 / 0.5139 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.398e-05/0.7066, allocations: 15.55 kB / 0.514 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.7066, allocations: 0 / 0.514 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.7066, allocations: 0 / 0.514 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.7067, allocations: 4.547 kB / 0.514 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.7067, allocations: 7.812 kB / 0.514 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002474/0.7069, allocations: 163.2 kB / 0.5141 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.982e-05/0.707, allocations: 88.38 kB / 0.5142 GB, free: 9.793 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.437e-05/0.7071, allocations: 3.969 kB / 0.5142 GB, free: 9.793 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.7072, allocations: 8.016 kB / 0.5142 GB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.879e-05/0.7073, allocations: 7.781 kB / 0.5142 GB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.022e-06/0.7073, allocations: 0 / 0.5142 GB, free: 9.781 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.534e-05/0.7074, allocations: 109.3 kB / 0.5143 GB, free: 9.699 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.7074, allocations: 0 / 0.5143 GB, free: 9.699 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004136/0.7078, allocations: 7.688 kB / 0.5143 GB, free: 9.699 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 0.0001152/0.7079, allocations: 90.91 kB / 0.5144 GB, free: 9.613 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002078/0.7082, allocations: 30.73 kB / 0.5145 GB, free: 9.602 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.7082, allocations: 0 / 0.5145 GB, free: 9.602 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.424e-05/0.7083, allocations: 11.67 kB / 0.5145 GB, free: 9.598 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005898/0.7089, allocations: 21.81 kB / 0.5145 GB, free: 9.59 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005963/0.7095, allocations: 221.5 kB / 0.5147 GB, free: 9.379 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002374/0.7097, allocations: 0.6917 MB / 0.5154 GB, free: 8.676 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.6e-05/0.7098, allocations: 7.438 kB / 0.5154 GB, free: 8.672 MB / 330.7 MB Notification: Performance of SimCode: time 7.22e-07/0.7098, allocations: 0 / 0.5154 GB, free: 8.672 MB / 330.7 MB Notification: Performance of Templates: time 0.003073/0.7129, allocations: 0.7096 MB / 0.5161 GB, free: 8.328 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches