Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.00116/0.00116, allocations: 184.8 kB / 16.45 MB, free: 5.656 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.256/1.256, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.0007831/0.0007831, allocations: 82.31 kB / 270.9 MB, free: 8.359 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.06637/0.06637, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004551/0.0004551, allocations: 12 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0836/0.08407, allocations: 50.38 MB / 443 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.001522/0.08563, allocations: 1.504 MB / 444.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008934/0.08655, allocations: 0.687 MB / 445.2 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.08666, allocations: 4 kB / 445.2 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.08679, allocations: 15.8 kB / 445.3 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000123/0.08693, allocations: 19.86 kB / 445.3 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004088/0.08734, allocations: 127.7 kB / 445.4 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001418/0.08749, allocations: 131.6 kB / 445.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.08763, allocations: 49.7 kB / 445.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.803e-05/0.08773, allocations: 39.78 kB / 445.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.758e-05/0.08782, allocations: 43.72 kB / 445.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.194e-05/0.08785, allocations: 4 kB / 445.7 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.191e-05/0.08794, allocations: 39.95 kB / 445.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.317e-05/0.088, allocations: 35.83 kB / 445.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.065e-05/0.08805, allocations: 45.64 kB / 445.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001337/0.08819, allocations: 131.7 kB / 445.9 MB, free: 12.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.0882, allocations: 0 / 445.9 MB, free: 12.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.08821, allocations: 0 / 445.9 MB, free: 12.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.08821, allocations: 0 / 445.9 MB, free: 12.9 MB / 298.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.0005541/0.08877, allocations: 459 kB / 446.4 MB, free: 12.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.08882, allocations: 12.03 kB / 446.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.245e-05/0.08886, allocations: 19.75 kB / 446.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002077/0.08908, allocations: 230.8 kB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.0891, allocations: 8.188 kB / 446.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.628e-05/0.08912, allocations: 8 kB / 446.6 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005638/0.08969, allocations: 347.8 kB / 447 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.08971, allocations: 0 / 447 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.08973, allocations: 4 kB / 447 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.08975, allocations: 4 kB / 447 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002131/0.08997, allocations: 103.8 kB / 447.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002946/0.09027, allocations: 329.6 kB / 447.4 MB, free: 11.24 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004047/0.09068, allocations: 286.1 kB / 447.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.09085, allocations: 109.7 kB / 447.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004779/0.09134, allocations: 0.5856 MB / 448.4 MB, free: 10.1 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.776e-05/0.09137, allocations: 46.78 kB / 448.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.532e-06/0.09138, allocations: 0 / 448.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005414/0.09192, allocations: 260.2 kB / 448.7 MB, free: 9.785 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.09198, allocations: 114.8 kB / 448.8 MB, free: 9.648 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.09212, allocations: 198.3 kB / 449 MB, free: 9.441 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.368e-05/0.09214, allocations: 25.7 kB / 449 MB, free: 9.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.94e-05/0.09219, allocations: 112.4 kB / 449.1 MB, free: 9.297 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.09221, allocations: 15.89 kB / 449.1 MB, free: 9.281 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.53e-06/0.09222, allocations: 4 kB / 449.1 MB, free: 9.277 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.743e-05/0.09227, allocations: 326.8 kB / 449.4 MB, free: 8.949 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.233e-05/0.09235, allocations: 40.34 kB / 449.5 MB, free: 8.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.09246, allocations: 169.8 kB / 449.7 MB, free: 8.684 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.352e-05/0.09256, allocations: 67.95 kB / 449.7 MB, free: 8.617 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.09257, allocations: 0 / 449.7 MB, free: 8.617 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002574/0.09283, allocations: 213.1 kB / 449.9 MB, free: 8.402 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.09286, allocations: 11.95 kB / 449.9 MB, free: 8.391 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.09287, allocations: 8.578 kB / 449.9 MB, free: 8.383 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.09289, allocations: 8 kB / 450 MB, free: 8.375 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.09303, allocations: 43.92 kB / 450 MB, free: 8.332 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.09304, allocations: 8 kB / 450 MB, free: 8.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.09316, allocations: 27.77 kB / 450 MB, free: 8.297 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.09317, allocations: 8 kB / 450 MB, free: 8.289 MB / 298.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.0001004/0.09328, allocations: 161.3 kB / 450.2 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002498/0.09354, allocations: 170.8 kB / 450.4 MB, free: 7.949 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002958/0.09384, allocations: 183.3 kB / 450.5 MB, free: 7.766 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.09385, allocations: 4 kB / 450.5 MB, free: 7.762 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.09386, allocations: 4 kB / 450.6 MB, free: 7.758 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.09387, allocations: 3.984 kB / 450.6 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000147/0.09402, allocations: 221.5 kB / 450.8 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.09404, allocations: 4 kB / 450.8 MB, free: 7.484 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001307/0.09417, allocations: 35.91 kB / 450.8 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.09418, allocations: 4 kB / 450.8 MB, free: 7.445 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.0942, allocations: 4 kB / 450.8 MB, free: 7.441 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.0942, allocations: 3.953 kB / 450.8 MB, free: 7.438 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.09421, allocations: 0 / 450.8 MB, free: 7.438 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003127/0.09453, allocations: 302.5 kB / 451.1 MB, free: 7.125 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.311e-05/0.0946, allocations: 112.9 kB / 451.2 MB, free: 6.996 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.676e-05/0.09463, allocations: 8 kB / 451.2 MB, free: 6.988 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.09476, allocations: 15.98 kB / 451.3 MB, free: 6.973 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.927e-05/0.0948, allocations: 4 kB / 451.3 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.457e-06/0.09481, allocations: 3.984 kB / 451.3 MB, free: 6.965 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.06e-05/0.0949, allocations: 148.4 kB / 451.4 MB, free: 6.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09491, allocations: 0 / 451.4 MB, free: 6.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002681/0.09518, allocations: 28 kB / 451.4 MB, free: 6.793 MB / 298.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.0001348/0.09532, allocations: 115.2 kB / 451.5 MB, free: 6.672 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002994/0.09563, allocations: 148.8 kB / 451.7 MB, free: 6.527 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.09564, allocations: 4.062 kB / 451.7 MB, free: 6.523 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.676e-05/0.09568, allocations: 11.94 kB / 451.7 MB, free: 6.512 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005133/0.0962, allocations: 145.8 kB / 451.8 MB, free: 6.363 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000518/0.09673, allocations: 417.6 kB / 452.3 MB, free: 5.926 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001379/0.09688, allocations: 0.7324 MB / 453 MB, free: 5.168 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.556e-05/0.09692, allocations: 15.44 kB / 453 MB, free: 5.152 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.09693, allocations: 0 / 453 MB, free: 5.152 MB / 298.7 MB Notification: Performance of Templates: time 0.003046/0.09998, allocations: 2.18 MB / 455.2 MB, free: 2.965 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches