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.001533/0.001532, allocations: 185.1 kB / 16.44 MB, free: 5.691 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.953/1.953, allocations: 205.4 MB / 222.6 MB, free: 9.129 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.001156/0.001156, allocations: 92.67 kB / 270.9 MB, free: 8.371 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.09747/0.09747, allocations: 12.59 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005512/0.0005513, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08644/0.08702, allocations: 50.38 MB / 442.4 MB, free: 16.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4317/0.5188, allocations: 79.77 MB / 0.5099 GB, free: 12.61 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002696/0.5191, allocations: 80.48 kB / 0.51 GB, free: 12.6 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01899/0.5381, allocations: 4.598 MB / 0.5145 GB, free: 10.82 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5382, allocations: 3.938 kB / 0.5145 GB, free: 10.81 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.672e-05/0.5382, allocations: 3.875 kB / 0.5145 GB, free: 10.81 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007173/0.5389, allocations: 474 kB / 0.5149 GB, free: 10.37 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.539, allocations: 11.53 kB / 0.5149 GB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.107e-05/0.539, allocations: 19.62 kB / 0.5149 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003423/0.5394, allocations: 240.6 kB / 0.5152 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.5394, allocations: 8 kB / 0.5152 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.809e-05/0.5395, allocations: 6.938 kB / 0.5152 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009279/0.5404, allocations: 336 kB / 0.5155 GB, free: 9.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.5404, allocations: 4 kB / 0.5155 GB, free: 9.977 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.49e-05/0.5405, allocations: 7.312 kB / 0.5155 GB, free: 9.973 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.5405, allocations: 3.875 kB / 0.5155 GB, free: 9.973 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003929/0.5409, allocations: 93.25 kB / 0.5156 GB, free: 9.953 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005378/0.5414, allocations: 365.5 kB / 0.516 GB, free: 9.621 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006849/0.5422, allocations: 271.5 kB / 0.5162 GB, free: 9.453 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006599/0.5428, allocations: 0.5727 MB / 0.5168 GB, free: 8.781 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.5429, allocations: 41.84 kB / 0.5168 GB, free: 8.738 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 2.986e-06/0.5429, allocations: 0 / 0.5168 GB, free: 8.738 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009509/0.5438, allocations: 343.2 kB / 0.5171 GB, free: 8.555 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.807e-05/0.5439, allocations: 117.6 kB / 0.5173 GB, free: 8.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002179/0.5442, allocations: 168.1 kB / 0.5174 GB, free: 8.316 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.5442, allocations: 33.39 kB / 0.5175 GB, free: 8.285 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.453e-05/0.5443, allocations: 165.8 kB / 0.5176 GB, free: 8.133 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.844e-05/0.5443, allocations: 14.62 kB / 0.5176 GB, free: 8.125 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.381e-05/0.5443, allocations: 11.22 kB / 0.5176 GB, free: 8.121 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.979e-05/0.5444, allocations: 325.6 kB / 0.5179 GB, free: 7.797 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.5445, allocations: 43 kB / 0.518 GB, free: 7.789 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.5447, allocations: 167.1 kB / 0.5181 GB, free: 7.613 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001743/0.5449, allocations: 72.06 kB / 0.5182 GB, free: 7.594 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.5449, allocations: 0 / 0.5182 GB, free: 7.594 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004479/0.5454, allocations: 211.6 kB / 0.5184 GB, free: 7.508 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.5454, allocations: 9.719 kB / 0.5184 GB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.5455, allocations: 3.844 kB / 0.5184 GB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.462e-05/0.5455, allocations: 11.64 kB / 0.5184 GB, free: 7.504 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002465/0.5457, allocations: 50.56 kB / 0.5185 GB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.5458, allocations: 7.812 kB / 0.5185 GB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001797/0.546, allocations: 10.97 kB / 0.5185 GB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/0.546, allocations: 11.75 kB / 0.5185 GB, free: 7.488 MB / 330.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 () * Number of clocked states: 3 (sample.noise.seedState[3],sample.noise.seedState[2],sample.noise.seedState[1]) * 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.0001916/0.5462, allocations: 157.6 kB / 0.5187 GB, free: 7.352 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000464/0.5467, allocations: 166.9 kB / 0.5188 GB, free: 7.293 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005343/0.5472, allocations: 195.7 kB / 0.519 GB, free: 7.219 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.5472, allocations: 3.984 kB / 0.519 GB, free: 7.215 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.5472, allocations: 3.953 kB / 0.519 GB, free: 7.211 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.5473, allocations: 7.859 kB / 0.519 GB, free: 7.207 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002562/0.5475, allocations: 226.7 kB / 0.5192 GB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.5476, allocations: 0 / 0.5192 GB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002813/0.5478, allocations: 34.92 kB / 0.5193 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.5479, allocations: 3.938 kB / 0.5193 GB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.5479, allocations: 10.42 kB / 0.5193 GB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/0.5479, allocations: 0 / 0.5193 GB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5479, allocations: 0 / 0.5193 GB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006062/0.5485, allocations: 312.7 kB / 0.5196 GB, free: 6.777 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.5487, allocations: 114.5 kB / 0.5197 GB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.221e-05/0.5487, allocations: 10 kB / 0.5197 GB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.5489, allocations: 15.61 kB / 0.5197 GB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.005e-05/0.549, allocations: 4 kB / 0.5197 GB, free: 6.652 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.174e-05/0.549, allocations: 6.562 kB / 0.5197 GB, free: 6.652 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001491/0.5492, allocations: 142 kB / 0.5199 GB, free: 6.566 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.5492, allocations: 0 / 0.5199 GB, free: 6.566 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004491/0.5497, allocations: 33.58 kB / 0.5199 GB, free: 6.562 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: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * 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.0001923/0.5499, allocations: 113.6 kB / 0.52 GB, free: 6.469 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004867/0.5504, allocations: 158.8 kB / 0.5202 GB, free: 6.395 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.5504, allocations: 0 / 0.5202 GB, free: 6.395 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.395e-05/0.5505, allocations: 9.188 kB / 0.5202 GB, free: 6.387 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007214/0.5512, allocations: 155 kB / 0.5203 GB, free: 6.258 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008177/0.552, allocations: 396.4 kB / 0.5207 GB, free: 5.867 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001954/0.5522, allocations: 0.7452 MB / 0.5214 GB, free: 5.098 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.255e-05/0.5523, allocations: 15.44 kB / 0.5214 GB, free: 5.082 MB / 330.7 MB Notification: Performance of SimCode: time 9.51e-07/0.5523, allocations: 0 / 0.5214 GB, free: 5.082 MB / 330.7 MB Notification: Performance of Templates: time 0.004995/0.5573, allocations: 2.158 MB / 0.5235 GB, free: 2.945 MB / 330.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