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.002346/0.002346, allocations: 186.8 kB / 13.7 MB, free: 1.625 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.227/2.227, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001636/0.001636, allocations: 90.66 kB / 267.6 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09807/0.09807, allocations: 12.59 MB / 328.2 MB, free: 11.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.537e-05/4.553e-05, allocations: 4 kB / 386 MB, free: 1.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.298, allocations: 50.37 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1381/0.4362, allocations: 78.15 MB / 0.5024 GB, free: 15.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/0.4365, allocations: 79.95 kB / 0.5025 GB, free: 15.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005637/0.4422, allocations: 1.344 MB / 0.5038 GB, free: 14.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.987e-06/0.4423, allocations: 0 / 0.5038 GB, free: 14.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.4423, allocations: 7.938 kB / 0.5038 GB, free: 14.46 MB / 362.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.0004249/0.4427, allocations: 342.5 kB / 0.5042 GB, free: 14.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.4428, allocations: 12.03 kB / 0.5042 GB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.264e-05/0.4428, allocations: 7.906 kB / 0.5042 GB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000229/0.4431, allocations: 186.8 kB / 0.5044 GB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.4431, allocations: 7.953 kB / 0.5044 GB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.535e-05/0.4431, allocations: 0 / 0.5044 GB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002523/0.4434, allocations: 97.03 kB / 0.5045 GB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.4434, allocations: 0 / 0.5045 GB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.4434, allocations: 4 kB / 0.5045 GB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.4435, allocations: 0 / 0.5045 GB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.162e-05/0.4435, allocations: 11.94 kB / 0.5045 GB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004486/0.444, allocations: 265.8 kB / 0.5047 GB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.252e-05/0.4441, allocations: 45.16 kB / 0.5048 GB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.529e-05/0.4441, allocations: 22.91 kB / 0.5048 GB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.4442, allocations: 0 / 0.5048 GB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.4442, allocations: 30.56 kB / 0.5048 GB, free: 13.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.433e-06/0.4442, allocations: 0 / 0.5048 GB, free: 13.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001906/0.4444, allocations: 53.53 kB / 0.5049 GB, free: 13.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.4445, allocations: 85.17 kB / 0.5049 GB, free: 13.11 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001499/0.4447, allocations: 122.3 kB / 0.5051 GB, free: 12.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.4447, allocations: 29.69 kB / 0.5051 GB, free: 12.94 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.146e-05/0.4448, allocations: 154.6 kB / 0.5052 GB, free: 12.79 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.985e-05/0.4448, allocations: 7.906 kB / 0.5052 GB, free: 12.78 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-06/0.4448, allocations: 0 / 0.5052 GB, free: 12.78 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.4449, allocations: 310.8 kB / 0.5055 GB, free: 12.47 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.276e-05/0.445, allocations: 4 kB / 0.5055 GB, free: 12.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.866e-05/0.445, allocations: 17.72 kB / 0.5056 GB, free: 12.44 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.415e-05/0.4451, allocations: 11.95 kB / 0.5056 GB, free: 12.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.4451, allocations: 0 / 0.5056 GB, free: 12.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001034/0.4452, allocations: 45.62 kB / 0.5056 GB, free: 12.38 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.4452, allocations: 4 kB / 0.5056 GB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.4452, allocations: 0 / 0.5056 GB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.4453, allocations: 4.125 kB / 0.5056 GB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.4454, allocations: 8 kB / 0.5056 GB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.4454, allocations: 3.984 kB / 0.5056 GB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.476e-05/0.4455, allocations: 4 kB / 0.5056 GB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.4455, allocations: 4 kB / 0.5056 GB, free: 12.35 MB / 362.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 8.091e-05/0.4456, allocations: 112.7 kB / 0.5058 GB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.72e-05/0.4457, allocations: 41.55 kB / 0.5058 GB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.857e-05/0.4457, allocations: 15.64 kB / 0.5058 GB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.4458, allocations: 4.031 kB / 0.5058 GB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.4458, allocations: 0 / 0.5058 GB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.4458, allocations: 0 / 0.5058 GB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002155/0.446, allocations: 169.6 kB / 0.506 GB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.446, allocations: 3.953 kB / 0.506 GB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.348e-05/0.4461, allocations: 4 kB / 0.506 GB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.4461, allocations: 0 / 0.506 GB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.4461, allocations: 8 kB / 0.506 GB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.4462, allocations: 0 / 0.506 GB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4462, allocations: 0 / 0.506 GB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001678/0.4463, allocations: 165.9 kB / 0.5061 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.203e-05/0.4464, allocations: 93.09 kB / 0.5062 GB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.964e-05/0.4465, allocations: 0 / 0.5062 GB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.4466, allocations: 7.984 kB / 0.5062 GB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.863e-05/0.4466, allocations: 0 / 0.5062 GB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.4467, allocations: 7.969 kB / 0.5063 GB, free: 11.63 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001056/0.4468, allocations: 107.2 kB / 0.5064 GB, free: 11.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.4468, allocations: 4 kB / 0.5064 GB, free: 11.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003029/0.4471, allocations: 4 kB / 0.5064 GB, free: 11.52 MB / 362.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 0.0001263/0.4472, allocations: 91.25 kB / 0.5064 GB, free: 11.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001105/0.4474, allocations: 15.94 kB / 0.5065 GB, free: 11.4 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4474, allocations: 0 / 0.5065 GB, free: 11.4 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.265e-05/0.4474, allocations: 12.12 kB / 0.5065 GB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.4477, allocations: 15.97 kB / 0.5065 GB, free: 11.37 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003338/0.4481, allocations: 127.5 kB / 0.5066 GB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000284/0.4484, allocations: 0.6926 MB / 0.5073 GB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.609e-05/0.4484, allocations: 7.438 kB / 0.5073 GB, free: 10.49 MB / 362.7 MB Notification: Performance of SimCode: time 1.332e-06/0.4484, allocations: 0 / 0.5073 GB, free: 10.49 MB / 362.7 MB Notification: Performance of Templates: time 0.00264/0.4511, allocations: 0.6707 MB / 0.5079 GB, free: 9.82 MB / 362.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