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/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/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: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008629/0.0008629, allocations: 175.3 kB / 16.76 MB, free: 5.047 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.141/1.141, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.0007065/0.0007065, allocations: 93.3 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05766/0.05766, allocations: 12.2 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004131/0.0004131, allocations: 16 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08197/0.0824, allocations: 50.28 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.00145/0.08388, allocations: 1.512 MB / 444 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008859/0.08479, allocations: 0.6947 MB / 444.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.08492, allocations: 4 kB / 444.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.08504, allocations: 11.86 kB / 444.7 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001124/0.08516, allocations: 23.84 kB / 444.7 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004129/0.08558, allocations: 139.7 kB / 444.9 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001426/0.08573, allocations: 139.5 kB / 445 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.08586, allocations: 49.53 kB / 445.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.08596, allocations: 55.77 kB / 445.1 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.657e-05/0.08606, allocations: 43.72 kB / 445.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.119e-05/0.08609, allocations: 4 kB / 445.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.724e-05/0.08617, allocations: 43.95 kB / 445.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.289e-05/0.08623, allocations: 35.83 kB / 445.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.65e-05/0.08629, allocations: 77.31 kB / 445.3 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001242/0.08642, allocations: 131.7 kB / 445.4 MB, free: 13.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.08643, allocations: 0 / 445.4 MB, free: 13.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.08644, allocations: 0 / 445.4 MB, free: 13.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.08645, allocations: 0 / 445.4 MB, free: 13.57 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.0005152/0.08697, allocations: 455.2 kB / 445.9 MB, free: 13.08 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.08701, allocations: 8.031 kB / 445.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.607e-05/0.08705, allocations: 46.73 kB / 445.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.568e-05/0.08709, allocations: 20.69 kB / 446 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001956/0.08729, allocations: 240 kB / 446.2 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.08731, allocations: 12.56 kB / 446.2 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.858e-05/0.08734, allocations: 11.94 kB / 446.2 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005684/0.08791, allocations: 354.5 kB / 446.6 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.08793, allocations: 0 / 446.6 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.08795, allocations: 4 kB / 446.6 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.08796, allocations: 8 kB / 446.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00021/0.08818, allocations: 95.88 kB / 446.7 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003009/0.08849, allocations: 341.6 kB / 447 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003824/0.08888, allocations: 286.3 kB / 447.3 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.08905, allocations: 109.7 kB / 447.4 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004451/0.0895, allocations: 0.5856 MB / 448 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.453e-05/0.08953, allocations: 38.56 kB / 448 MB, free: 10.65 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.382e-06/0.08953, allocations: 0 / 448 MB, free: 10.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0004913/0.09003, allocations: 253.9 kB / 448.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.391e-05/0.09009, allocations: 128.3 kB / 448.4 MB, free: 10.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.09022, allocations: 190.2 kB / 448.6 MB, free: 10.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/0.09024, allocations: 29.7 kB / 448.6 MB, free: 10.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.566e-05/0.09028, allocations: 104.6 kB / 448.7 MB, free: 9.906 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.715e-05/0.0903, allocations: 20.02 kB / 448.7 MB, free: 9.887 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.36e-06/0.09031, allocations: 0 / 448.7 MB, free: 9.887 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.32e-05/0.09036, allocations: 326.8 kB / 449 MB, free: 9.559 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.075e-05/0.09044, allocations: 43.97 kB / 449.1 MB, free: 9.516 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.09054, allocations: 165.1 kB / 449.2 MB, free: 9.293 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001605/0.09071, allocations: 208.1 kB / 449.5 MB, free: 9.031 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.09072, allocations: 0 / 449.5 MB, free: 9.031 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002562/0.09098, allocations: 221 kB / 449.7 MB, free: 8.809 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.091, allocations: 8 kB / 449.7 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.09101, allocations: 4 kB / 449.7 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.09103, allocations: 8 kB / 449.7 MB, free: 8.789 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/0.09116, allocations: 43.91 kB / 449.7 MB, free: 8.746 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.09117, allocations: 8.562 kB / 449.7 MB, free: 8.738 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.09128, allocations: 27.84 kB / 449.8 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.0913, allocations: 11.98 kB / 449.8 MB, free: 8.699 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 9.266e-05/0.0914, allocations: 153.5 kB / 449.9 MB, free: 8.539 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002481/0.09165, allocations: 177.2 kB / 450.1 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002926/0.09195, allocations: 194.1 kB / 450.3 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.09197, allocations: 4 kB / 450.3 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.09197, allocations: 0 / 450.3 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.09198, allocations: 0 / 450.3 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.09213, allocations: 221.6 kB / 450.5 MB, free: 7.898 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.09214, allocations: 4 kB / 450.5 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.09227, allocations: 39.86 kB / 450.6 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.09228, allocations: 0 / 450.6 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.0923, allocations: 11.98 kB / 450.6 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.09231, allocations: 0 / 450.6 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.09231, allocations: 0 / 450.6 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003258/0.09264, allocations: 299.9 kB / 450.9 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.281e-05/0.09272, allocations: 124.8 kB / 451 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.09275, allocations: 11.94 kB / 451 MB, free: 7.379 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/0.09288, allocations: 15.98 kB / 451 MB, free: 7.363 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.605e-05/0.09291, allocations: 0 / 451 MB, free: 7.363 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.09293, allocations: 4 kB / 451 MB, free: 7.359 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.953e-05/0.09302, allocations: 148.4 kB / 451.2 MB, free: 7.215 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09302, allocations: 0 / 451.2 MB, free: 7.215 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002764/0.0933, allocations: 32 kB / 451.2 MB, free: 7.184 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.0006432/0.09395, allocations: 0.9239 MB / 452.1 MB, free: 6.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002552/0.09422, allocations: 156.7 kB / 452.3 MB, free: 6.078 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.09423, allocations: 4.062 kB / 452.3 MB, free: 6.074 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.433e-05/0.09427, allocations: 15.94 kB / 452.3 MB, free: 6.059 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004986/0.09478, allocations: 146.7 kB / 452.4 MB, free: 5.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.09597, allocations: 1.089 MB / 453.5 MB, free: 4.711 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001216/0.0961, allocations: 0.7324 MB / 454.2 MB, free: 3.953 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.132e-05/0.09617, allocations: 47.42 kB / 454.3 MB, free: 3.906 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.09617, allocations: 0 / 454.3 MB, free: 3.906 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.492/2.588, allocations: 2.529 MB / 456.8 MB, free: 1.371 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > 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) "" Variables in the reference:Time,assignClock.y,sample.y Variables in the result:assignClock.u,assignClock.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(sample.noise.seedState[1]),previous(sample.noise.seedState[2]),previous(sample.noise.seedState[3]),sample.bits,sample.limited,sample.limiter.u,sample.limiter.uMax,sample.limiter.uMin,sample.limiter.y,sample.noise.firstSeed[1],sample.noise.firstSeed[2],sample.noise.firstSeed[3],sample.noise.noise,sample.noise.noiseMax,sample.noise.noiseMin,sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3],sample.noise.u,sample.noise.y,sample.noisy,sample.quantization.bits,sample.quantization.quantized,sample.quantization.resolution,sample.quantization.u,sample.quantization.y,sample.quantization.yMax,sample.quantization.yMin,sample.quantized,sample.sample1.u,sample.sample1.y,sample.u,sample.y,sample.y1,sample.y2,sample.y3,sample.y4,sample.yMax,sample.yMin,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time