Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.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.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0016/0.0016, allocations: 181 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.043/2.043, allocations: 205.2 MB / 219.4 MB, free: 14.19 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.001134/0.001133, allocations: 82.7 kB / 267.6 MB, free: 14.04 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.09777/0.09777, allocations: 12.6 MB / 328.2 MB, free: 11.14 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.749e-05/3.762e-05, allocations: 8 kB / 386 MB, free: 1.289 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3215, allocations: 50.37 MB / 436.4 MB, free: 14.14 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1438/0.4653, allocations: 79.69 MB / 0.5039 GB, free: 14.35 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/0.4657, allocations: 79.95 kB / 0.504 GB, free: 14.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02191/0.4876, allocations: 4.592 MB / 0.5085 GB, free: 9.668 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4877, allocations: 0 / 0.5085 GB, free: 9.668 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.917e-05/0.4877, allocations: 8 kB / 0.5085 GB, free: 9.66 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007738/0.4885, allocations: 450.1 kB / 0.5089 GB, free: 9.172 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.4886, allocations: 11.97 kB / 0.5089 GB, free: 9.16 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.762e-05/0.4887, allocations: 15.81 kB / 0.509 GB, free: 9.145 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004161/0.4891, allocations: 239.2 kB / 0.5092 GB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.525e-05/0.4891, allocations: 12.19 kB / 0.5092 GB, free: 8.859 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.199e-05/0.4892, allocations: 12 kB / 0.5092 GB, free: 8.848 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007282/0.4899, allocations: 287.3 kB / 0.5095 GB, free: 8.543 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.4899, allocations: 0 / 0.5095 GB, free: 8.543 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.304e-05/0.49, allocations: 3.938 kB / 0.5095 GB, free: 8.539 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.49, allocations: 4 kB / 0.5095 GB, free: 8.535 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000192/0.4902, allocations: 59.92 kB / 0.5096 GB, free: 8.477 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006114/0.4908, allocations: 353.5 kB / 0.5099 GB, free: 8.078 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004625/0.4913, allocations: 234.4 kB / 0.5101 GB, free: 7.812 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002055/0.4915, allocations: 77.78 kB / 0.5102 GB, free: 7.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009002/0.4924, allocations: 0.5817 MB / 0.5108 GB, free: 7.02 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.4925, allocations: 34.56 kB / 0.5108 GB, free: 6.977 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 3.747e-06/0.4925, allocations: 0 / 0.5108 GB, free: 6.977 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0004793/0.493, allocations: 157.4 kB / 0.5109 GB, free: 6.816 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.4931, allocations: 114.8 kB / 0.5111 GB, free: 6.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/0.4934, allocations: 173.5 kB / 0.5112 GB, free: 6.504 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.052e-05/0.4934, allocations: 25.7 kB / 0.5112 GB, free: 6.473 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.909e-05/0.4935, allocations: 174.9 kB / 0.5114 GB, free: 6.301 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.111e-05/0.4936, allocations: 11.89 kB / 0.5114 GB, free: 6.289 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.171e-05/0.4936, allocations: 8 kB / 0.5114 GB, free: 6.281 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.4937, allocations: 314.8 kB / 0.5117 GB, free: 5.965 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.844e-05/0.4938, allocations: 36.31 kB / 0.5118 GB, free: 5.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001947/0.494, allocations: 165.8 kB / 0.5119 GB, free: 5.707 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001423/0.4942, allocations: 59.94 kB / 0.512 GB, free: 5.648 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.4942, allocations: 0 / 0.512 GB, free: 5.648 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004171/0.4946, allocations: 197.3 kB / 0.5122 GB, free: 5.449 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.4947, allocations: 11.94 kB / 0.5122 GB, free: 5.438 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.4947, allocations: 4 kB / 0.5122 GB, free: 5.434 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.443e-05/0.4947, allocations: 11.95 kB / 0.5122 GB, free: 5.422 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002921/0.495, allocations: 47.91 kB / 0.5122 GB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.417e-05/0.4951, allocations: 4 kB / 0.5122 GB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001898/0.4953, allocations: 20.45 kB / 0.5123 GB, free: 5.352 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.381e-05/0.4953, allocations: 16 kB / 0.5123 GB, free: 5.336 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 (sample.noise.seedState[3],$CLKPRE.sample.noise.seedState[3],sample.noise.seedState[2],$CLKPRE.sample.noise.seedState[2],sample.noise.seedState[1],$CLKPRE.sample.noise.seedState[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0001341/0.4954, allocations: 132.5 kB / 0.5124 GB, free: 5.199 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003439/0.4958, allocations: 142.6 kB / 0.5125 GB, free: 5.055 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004421/0.4963, allocations: 171 kB / 0.5127 GB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.4963, allocations: 3.953 kB / 0.5127 GB, free: 4.883 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.4963, allocations: 0 / 0.5127 GB, free: 4.883 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.4963, allocations: 4 kB / 0.5127 GB, free: 4.879 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002955/0.4966, allocations: 237.4 kB / 0.5129 GB, free: 4.598 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.4966, allocations: 0 / 0.5129 GB, free: 4.598 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002751/0.4969, allocations: 35.97 kB / 0.513 GB, free: 4.562 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.497, allocations: 0 / 0.513 GB, free: 4.562 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.497, allocations: 7.938 kB / 0.513 GB, free: 4.555 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.497, allocations: 4 kB / 0.513 GB, free: 4.551 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/0.497, allocations: 7.938 kB / 0.513 GB, free: 4.543 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004186/0.4974, allocations: 265.9 kB / 0.5132 GB, free: 4.258 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001399/0.4976, allocations: 120.8 kB / 0.5134 GB, free: 4.121 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.879e-05/0.4977, allocations: 4 kB / 0.5134 GB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002137/0.4979, allocations: 15.98 kB / 0.5134 GB, free: 4.102 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.702e-05/0.4979, allocations: 0 / 0.5134 GB, free: 4.102 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.483e-05/0.498, allocations: 8 kB / 0.5134 GB, free: 4.094 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001751/0.4982, allocations: 144.3 kB / 0.5135 GB, free: 3.953 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4982, allocations: 0 / 0.5135 GB, free: 3.953 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004459/0.4986, allocations: 36 kB / 0.5136 GB, free: 3.918 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: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0002287/0.4989, allocations: 111.2 kB / 0.5137 GB, free: 3.801 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003438/0.4992, allocations: 120.9 kB / 0.5138 GB, free: 3.684 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.4993, allocations: 4.062 kB / 0.5138 GB, free: 3.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.82e-05/0.4993, allocations: 7.984 kB / 0.5138 GB, free: 3.672 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000649/0.4999, allocations: 133.7 kB / 0.5139 GB, free: 3.535 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007111/0.5007, allocations: 249.3 kB / 0.5142 GB, free: 3.254 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/0.501, allocations: 0.7442 MB / 0.5149 GB, free: 2.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.683e-05/0.5011, allocations: 15.44 kB / 0.5149 GB, free: 2.465 MB / 362.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5011, allocations: 0 / 0.5149 GB, free: 2.465 MB / 362.7 MB Notification: Performance of Templates: time 0.005898/0.507, allocations: 2.153 MB / 0.517 GB, free: 320 kB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches