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.0008997/0.0008998, allocations: 172.5 kB / 16.8 MB, free: 4.91 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.578/1.578, allocations: 205.4 MB / 223 MB, free: 9.016 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.0007962/0.0007958, allocations: 89.41 kB / 271.3 MB, free: 8.25 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.08694/0.08694, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005857/0.0005858, allocations: 23.98 kB / 393.2 MB, free: 65.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1133, allocations: 50.36 MB / 443.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3855/0.4989, allocations: 78.26 MB / 0.5096 GB, free: 13.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002817/0.4992, allocations: 82 kB / 0.5097 GB, free: 13.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004085/0.5033, allocations: 1.353 MB / 0.511 GB, free: 12.92 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.5034, allocations: 0 / 0.511 GB, free: 12.92 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.5034, allocations: 0 / 0.511 GB, free: 12.92 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.0003427/0.5037, allocations: 371.6 kB / 0.5114 GB, free: 12.54 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.5038, allocations: 11.62 kB / 0.5114 GB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.221e-05/0.5038, allocations: 8.688 kB / 0.5114 GB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001705/0.504, allocations: 184.1 kB / 0.5116 GB, free: 12.33 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.516e-06/0.504, allocations: 4.375 kB / 0.5116 GB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.769e-05/0.5041, allocations: 8.234 kB / 0.5116 GB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000249/0.5043, allocations: 87.92 kB / 0.5117 GB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.5044, allocations: 4.031 kB / 0.5117 GB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.5044, allocations: 3.938 kB / 0.5117 GB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.5044, allocations: 4 kB / 0.5117 GB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.228e-05/0.5045, allocations: 26.86 kB / 0.5117 GB, free: 12.23 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003394/0.5048, allocations: 266.2 kB / 0.512 GB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.661e-05/0.505, allocations: 56.58 kB / 0.512 GB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.6e-05/0.505, allocations: 17.41 kB / 0.512 GB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.5051, allocations: 0 / 0.512 GB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/0.5051, allocations: 34.41 kB / 0.5121 GB, free: 11.83 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.103e-06/0.5051, allocations: 4 kB / 0.5121 GB, free: 11.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002649/0.5054, allocations: 71.58 kB / 0.5121 GB, free: 11.78 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.5054, allocations: 77.11 kB / 0.5122 GB, free: 11.69 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.5055, allocations: 141.2 kB / 0.5123 GB, free: 11.58 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.906e-06/0.5055, allocations: 25.7 kB / 0.5124 GB, free: 11.55 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.72e-05/0.5056, allocations: 95.8 kB / 0.5125 GB, free: 11.46 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.354e-05/0.5056, allocations: 0 / 0.5125 GB, free: 11.46 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-06/0.5056, allocations: 3.938 kB / 0.5125 GB, free: 11.45 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.688e-05/0.5057, allocations: 318.5 kB / 0.5128 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.672e-05/0.5057, allocations: 11.66 kB / 0.5128 GB, free: 11.13 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.247e-05/0.5058, allocations: 21.39 kB / 0.5128 GB, free: 11.11 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.74e-05/0.5059, allocations: 32.75 kB / 0.5128 GB, free: 11.09 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.5059, allocations: 3.938 kB / 0.5128 GB, free: 11.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001362/0.506, allocations: 60.05 kB / 0.5129 GB, free: 11.05 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.5061, allocations: 11.88 kB / 0.5129 GB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.5061, allocations: 0.75 kB / 0.5129 GB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.5061, allocations: 0 / 0.5129 GB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.495e-05/0.5062, allocations: 3.875 kB / 0.5129 GB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.5062, allocations: 11.73 kB / 0.5129 GB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.525e-05/0.5062, allocations: 3.906 kB / 0.5129 GB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/0.5063, allocations: 6.344 kB / 0.5129 GB, free: 11.03 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 6.821e-05/0.5063, allocations: 122.1 kB / 0.513 GB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.776e-05/0.5064, allocations: 45.78 kB / 0.5131 GB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.258e-05/0.5065, allocations: 7.25 kB / 0.5131 GB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.5065, allocations: 3.875 kB / 0.5131 GB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.5065, allocations: 0 / 0.5131 GB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.5065, allocations: 0 / 0.5131 GB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001626/0.5067, allocations: 172.5 kB / 0.5133 GB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.5067, allocations: 0 / 0.5133 GB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.921e-05/0.5067, allocations: 11.73 kB / 0.5133 GB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.5067, allocations: 0 / 0.5133 GB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.5068, allocations: 3.984 kB / 0.5133 GB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.5068, allocations: 8 kB / 0.5133 GB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.5068, allocations: 0 / 0.5133 GB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001533/0.5069, allocations: 162.5 kB / 0.5134 GB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.566e-05/0.507, allocations: 92.75 kB / 0.5135 GB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.507, allocations: 3.812 kB / 0.5135 GB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.43e-05/0.5071, allocations: 11.98 kB / 0.5135 GB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.674e-05/0.5072, allocations: 0 / 0.5135 GB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.5072, allocations: 0 / 0.5135 GB, free: 10.38 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.268e-05/0.5073, allocations: 108.3 kB / 0.5137 GB, free: 10.3 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5073, allocations: 0 / 0.5137 GB, free: 10.3 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003423/0.5076, allocations: 3.875 kB / 0.5137 GB, free: 10.3 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.197e-05/0.5077, allocations: 98.69 kB / 0.5137 GB, free: 10.21 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001411/0.5079, allocations: 26.8 kB / 0.5138 GB, free: 10.2 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5079, allocations: 0 / 0.5138 GB, free: 10.2 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.668e-05/0.5079, allocations: 14.84 kB / 0.5138 GB, free: 10.2 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004292/0.5084, allocations: 18.92 kB / 0.5138 GB, free: 10.19 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003379/0.5087, allocations: 174.2 kB / 0.514 GB, free: 10.03 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001362/0.5089, allocations: 0.6921 MB / 0.5146 GB, free: 9.32 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.538e-05/0.5089, allocations: 0 / 0.5146 GB, free: 9.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.271e-05/0.509, allocations: 11.28 kB / 0.5147 GB, free: 9.312 MB / 330.7 MB Notification: Performance of SimCode: time 3.1e-07/0.509, allocations: 0 / 0.5147 GB, free: 9.312 MB / 330.7 MB Notification: Performance of Templates: time 0.002637/0.5116, allocations: 432.7 kB / 0.5151 GB, free: 9.098 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