Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.001546/0.001546, 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 2.024/2.024, allocations: 205.4 MB / 222.6 MB, free: 9.117 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.00112/0.00112, allocations: 88.25 kB / 270.9 MB, free: 8.367 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.1036/0.1036, allocations: 12.61 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005705/0.0005706, allocations: 16 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08965/0.09026, allocations: 50.37 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4542/0.5445, allocations: 78.23 MB / 0.5084 GB, free: 12.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.5448, allocations: 87.36 kB / 0.5085 GB, free: 12.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004853/0.5497, allocations: 1.344 MB / 0.5098 GB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5497, allocations: 0 / 0.5098 GB, free: 12.36 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.779e-06/0.5498, allocations: 3.844 kB / 0.5098 GB, free: 12.36 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.0003735/0.5501, allocations: 368.1 kB / 0.5101 GB, free: 11.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.5502, allocations: 7.656 kB / 0.5101 GB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.535e-05/0.5502, allocations: 7.781 kB / 0.5101 GB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001639/0.5504, allocations: 189.8 kB / 0.5103 GB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.5504, allocations: 7.766 kB / 0.5103 GB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.5505, allocations: 0 / 0.5103 GB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/0.5507, allocations: 99.41 kB / 0.5104 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.5508, allocations: 2.562 kB / 0.5104 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.5508, allocations: 0 / 0.5104 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.5508, allocations: 0 / 0.5104 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001202/0.5509, allocations: 22.33 kB / 0.5104 GB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000355/0.5513, allocations: 267.9 kB / 0.5107 GB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.664e-05/0.5514, allocations: 48.09 kB / 0.5108 GB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.5514, allocations: 0 / 0.5108 GB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.5515, allocations: 38.55 kB / 0.5108 GB, free: 11.29 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.403e-06/0.5515, allocations: 0 / 0.5108 GB, free: 11.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003138/0.5518, allocations: 71.66 kB / 0.5109 GB, free: 11.24 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.846e-05/0.5518, allocations: 84.89 kB / 0.5109 GB, free: 11.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.552, allocations: 124.6 kB / 0.5111 GB, free: 11.04 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.007e-05/0.552, allocations: 29.95 kB / 0.5111 GB, free: 11.01 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.212e-05/0.5521, allocations: 158.2 kB / 0.5112 GB, free: 10.86 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.433e-05/0.5521, allocations: 3.812 kB / 0.5112 GB, free: 10.86 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.909e-06/0.5521, allocations: 0 / 0.5112 GB, free: 10.86 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.417e-05/0.5522, allocations: 314.8 kB / 0.5115 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.172e-05/0.5522, allocations: 11.5 kB / 0.5115 GB, free: 10.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.094e-05/0.5523, allocations: 25.39 kB / 0.5116 GB, free: 10.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.473e-05/0.5524, allocations: 7.906 kB / 0.5116 GB, free: 10.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.5524, allocations: 7.703 kB / 0.5116 GB, free: 10.51 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001636/0.5526, allocations: 56.55 kB / 0.5116 GB, free: 10.47 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.5526, allocations: 3.844 kB / 0.5116 GB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.5526, allocations: 8.109 kB / 0.5117 GB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.5527, allocations: 0 / 0.5117 GB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.269e-05/0.5528, allocations: 7.531 kB / 0.5117 GB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.5528, allocations: 0 / 0.5117 GB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.858e-05/0.5528, allocations: 10.55 kB / 0.5117 GB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.5529, allocations: 0 / 0.5117 GB, free: 10.46 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 7.431e-05/0.5529, allocations: 117.2 kB / 0.5118 GB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.672e-05/0.553, allocations: 45.19 kB / 0.5118 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.527e-05/0.5531, allocations: 19.45 kB / 0.5118 GB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.5531, allocations: 3.938 kB / 0.5118 GB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.5531, allocations: 0 / 0.5118 GB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.277e-06/0.5531, allocations: 0 / 0.5118 GB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001686/0.5533, allocations: 168.2 kB / 0.512 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.5533, allocations: 0 / 0.512 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.653e-05/0.5534, allocations: 7.766 kB / 0.512 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.5534, allocations: 3.875 kB / 0.512 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.5534, allocations: 7.359 kB / 0.512 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.5534, allocations: 0 / 0.512 GB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.5534, allocations: 4 kB / 0.512 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002037/0.5536, allocations: 173 kB / 0.5122 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.787e-05/0.5537, allocations: 91.94 kB / 0.5123 GB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.041e-05/0.5537, allocations: 0 / 0.5123 GB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.341e-05/0.5538, allocations: 15.73 kB / 0.5123 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.455e-05/0.5539, allocations: 0 / 0.5123 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.5539, allocations: 3.875 kB / 0.5123 GB, free: 9.797 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.157e-05/0.554, allocations: 104.5 kB / 0.5124 GB, free: 9.719 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.554, allocations: 0 / 0.5124 GB, free: 9.719 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002687/0.5543, allocations: 3.875 kB / 0.5124 GB, free: 9.719 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.842e-05/0.5544, allocations: 94.77 kB / 0.5125 GB, free: 9.629 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001743/0.5546, allocations: 34.92 kB / 0.5125 GB, free: 9.617 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.5546, allocations: 0 / 0.5125 GB, free: 9.617 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.407e-05/0.5546, allocations: 15.53 kB / 0.5125 GB, free: 9.613 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.5549, allocations: 16.36 kB / 0.5126 GB, free: 9.602 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003663/0.5553, allocations: 213 kB / 0.5128 GB, free: 9.402 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001443/0.5555, allocations: 0.6883 MB / 0.5134 GB, free: 8.699 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.215e-05/0.5555, allocations: 7.438 kB / 0.5134 GB, free: 8.691 MB / 330.7 MB Notification: Performance of SimCode: time 6.52e-07/0.5555, allocations: 0 / 0.5134 GB, free: 8.691 MB / 330.7 MB Notification: Performance of Templates: time 0.002251/0.5578, allocations: 0.6764 MB / 0.5141 GB, free: 8.359 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches