Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002295/0.002295, allocations: 181 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.23/2.23, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.001686/0.001686, allocations: 94.75 kB / 261.8 MB, free: 13.46 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.1059/0.1059, allocations: 12.59 MB / 322.3 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.034e-05/2.047e-05, allocations: 0 / 378.9 MB, free: 75.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1137, allocations: 50.38 MB / 429.3 MB, free: 24.92 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4557/0.5695, allocations: 77.47 MB / 0.4949 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002854/0.5698, allocations: 83.5 kB / 0.495 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00512/0.575, allocations: 1.333 MB / 0.4963 GB, free: 11.61 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.575, allocations: 7.875 kB / 0.4963 GB, free: 11.6 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.575, allocations: 0 / 0.4963 GB, free: 11.6 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003567/0.5754, allocations: 354.5 kB / 0.4966 GB, free: 11.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.5755, allocations: 7.688 kB / 0.4966 GB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.789e-05/0.5755, allocations: 7.75 kB / 0.4966 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001927/0.5757, allocations: 191.9 kB / 0.4968 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.5757, allocations: 7.797 kB / 0.4968 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.562e-05/0.5758, allocations: 0 / 0.4968 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.629e-05/0.5759, allocations: 11.53 kB / 0.4968 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001857/0.5761, allocations: 85.77 kB / 0.4969 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.5761, allocations: 0 / 0.4969 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.5761, allocations: 0 / 0.4969 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.5761, allocations: 0 / 0.4969 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003648/0.5765, allocations: 245.7 kB / 0.4972 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.694e-05/0.5766, allocations: 43.97 kB / 0.4972 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.264e-05/0.5766, allocations: 17.38 kB / 0.4972 GB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.245e-05/0.5766, allocations: 0 / 0.4972 GB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.5767, allocations: 33.19 kB / 0.4973 GB, free: 10.61 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 2.084e-06/0.5767, allocations: 3.984 kB / 0.4973 GB, free: 10.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001744/0.5769, allocations: 55.02 kB / 0.4973 GB, free: 10.56 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.5769, allocations: 77.11 kB / 0.4974 GB, free: 10.47 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.577, allocations: 121 kB / 0.4975 GB, free: 10.38 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.047e-05/0.5771, allocations: 29.55 kB / 0.4975 GB, free: 10.34 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.396e-05/0.5771, allocations: 83.58 kB / 0.4976 GB, free: 10.26 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.46e-05/0.5771, allocations: 3.906 kB / 0.4976 GB, free: 10.26 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.837e-06/0.5771, allocations: 0 / 0.4976 GB, free: 10.26 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.45e-05/0.5772, allocations: 325 kB / 0.4979 GB, free: 9.941 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.733e-05/0.5772, allocations: 0 / 0.4979 GB, free: 9.941 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.452e-05/0.5773, allocations: 16.66 kB / 0.4979 GB, free: 9.926 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.398e-05/0.5773, allocations: 3.844 kB / 0.4979 GB, free: 9.926 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.5773, allocations: 0 / 0.4979 GB, free: 9.926 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.636e-05/0.5774, allocations: 51.67 kB / 0.498 GB, free: 9.887 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.5774, allocations: 3.875 kB / 0.498 GB, free: 9.887 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.5775, allocations: 4.125 kB / 0.498 GB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.5775, allocations: 0 / 0.498 GB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/0.5776, allocations: 10.64 kB / 0.498 GB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.5776, allocations: 0 / 0.498 GB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.552e-05/0.5777, allocations: 3.844 kB / 0.498 GB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.5777, allocations: 0 / 0.498 GB, free: 9.883 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 () * 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 5.627e-05/0.5778, allocations: 107 kB / 0.4981 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.793e-05/0.5778, allocations: 51.75 kB / 0.4982 GB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.787e-05/0.5779, allocations: 11.59 kB / 0.4982 GB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.5779, allocations: 3.938 kB / 0.4982 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.5779, allocations: 3.234 kB / 0.4982 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.5779, allocations: 0 / 0.4982 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001544/0.5781, allocations: 146.8 kB / 0.4983 GB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.5781, allocations: 0 / 0.4983 GB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.547e-05/0.5782, allocations: 3.844 kB / 0.4983 GB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.5782, allocations: 0 / 0.4983 GB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.5782, allocations: 10.66 kB / 0.4983 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.5782, allocations: 0 / 0.4983 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.5783, allocations: 4 kB / 0.4983 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001255/0.5784, allocations: 158.5 kB / 0.4985 GB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.602e-05/0.5785, allocations: 94.27 kB / 0.4986 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.398e-05/0.5785, allocations: 5.641 kB / 0.4986 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.5786, allocations: 3.875 kB / 0.4986 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.071e-05/0.5787, allocations: 5.297 kB / 0.4986 GB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.611e-06/0.5787, allocations: 0 / 0.4986 GB, free: 9.289 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.885e-05/0.5788, allocations: 106.9 kB / 0.4987 GB, free: 9.215 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.5788, allocations: 0 / 0.4987 GB, free: 9.215 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002989/0.5791, allocations: 3.969 kB / 0.4987 GB, free: 9.215 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 () * 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 9.216e-05/0.5792, allocations: 94.59 kB / 0.4988 GB, free: 9.125 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.696e-05/0.5793, allocations: 11.7 kB / 0.4988 GB, free: 9.125 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.5793, allocations: 128 / 0.4988 GB, free: 9.125 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.349e-05/0.5794, allocations: 14.28 kB / 0.4988 GB, free: 9.117 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.5797, allocations: 13.7 kB / 0.4988 GB, free: 9.117 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002781/0.58, allocations: 88.47 kB / 0.4989 GB, free: 9.035 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001626/0.5802, allocations: 0.6929 MB / 0.4996 GB, free: 8.336 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.236e-05/0.5802, allocations: 5.812 kB / 0.4996 GB, free: 8.336 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.01e-05/0.5802, allocations: 11.44 kB / 0.4996 GB, free: 8.328 MB / 330.7 MB Notification: Performance of SimCode: time 6.51e-07/0.5803, allocations: 4 kB / 0.4996 GB, free: 8.324 MB / 330.7 MB Notification: Performance of Templates: time 0.002969/0.5832, allocations: 396.1 kB / 0.5 GB, free: 8.27 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches