Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009255/0.0009255, allocations: 201.7 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 226.5 MB / 244.7 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007724/0.0007723, allocations: 98.28 kB / 296.7 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002839/0.0002839, allocations: 8 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3015/0.3018, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.001706/0.3035, allocations: 1.531 MB / 409.7 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009185/0.3045, allocations: 0.6573 MB / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.3046, allocations: 0 / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001306/0.3048, allocations: 25.02 kB / 410.4 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001209/0.3049, allocations: 11.92 kB / 410.4 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004255/0.3053, allocations: 128.9 kB / 410.5 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001532/0.3055, allocations: 124.4 kB / 410.6 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.3056, allocations: 56.3 kB / 410.7 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.3058, allocations: 56.64 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.92e-05/0.3059, allocations: 43.72 kB / 410.8 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.3059, allocations: 4.812 kB / 410.8 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.083e-05/0.306, allocations: 39.95 kB / 410.8 MB, free: 25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.031e-05/0.3061, allocations: 32.41 kB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.066e-05/0.3061, allocations: 81.31 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.3063, allocations: 148.6 kB / 411.1 MB, free: 24.74 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.3063, allocations: 0 / 411.1 MB, free: 24.74 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3063, allocations: 4.75 kB / 411.1 MB, free: 24.74 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.3063, allocations: 3.938 kB / 411.1 MB, free: 24.73 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.0006027/0.3069, allocations: 450.5 kB / 411.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.307, allocations: 15.58 kB / 411.5 MB, free: 24.24 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.171e-05/0.307, allocations: 38.75 kB / 411.6 MB, free: 24.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/0.3072, allocations: 32.64 kB / 411.6 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002238/0.3074, allocations: 240 kB / 411.8 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.3074, allocations: 12.55 kB / 411.8 MB, free: 23.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.676e-05/0.3075, allocations: 15.94 kB / 411.9 MB, free: 23.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006182/0.3081, allocations: 343.8 kB / 412.2 MB, free: 23.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.3081, allocations: 4 kB / 412.2 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/0.3081, allocations: 4 kB / 412.2 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.3081, allocations: 0 / 412.2 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002201/0.3084, allocations: 95.88 kB / 412.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003267/0.3087, allocations: 349.5 kB / 412.6 MB, free: 23.01 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004095/0.3091, allocations: 278.4 kB / 412.9 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.3093, allocations: 105.7 kB / 413 MB, free: 22.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004861/0.3098, allocations: 0.5817 MB / 413.6 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.3098, allocations: 38.56 kB / 413.6 MB, free: 21.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.423e-06/0.3098, allocations: 0 / 413.6 MB, free: 21.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005353/0.3104, allocations: 260.5 kB / 413.9 MB, free: 21.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.3104, allocations: 110.8 kB / 414 MB, free: 21.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.3106, allocations: 199.1 kB / 414.2 MB, free: 21.24 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.3106, allocations: 29.83 kB / 414.2 MB, free: 21.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.736e-05/0.3107, allocations: 116.4 kB / 414.3 MB, free: 21.08 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.491e-05/0.3107, allocations: 11.89 kB / 414.3 MB, free: 21.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.005e-06/0.3107, allocations: 11.94 kB / 414.4 MB, free: 21.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.483e-05/0.3108, allocations: 322.8 kB / 414.7 MB, free: 20.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.207e-05/0.3108, allocations: 39.97 kB / 414.7 MB, free: 20.7 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.3109, allocations: 160.5 kB / 414.9 MB, free: 20.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001756/0.3111, allocations: 216.1 kB / 415.1 MB, free: 20.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3111, allocations: 0 / 415.1 MB, free: 20.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002648/0.3114, allocations: 224.9 kB / 415.3 MB, free: 19.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.3114, allocations: 4 kB / 415.3 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.3114, allocations: 8 kB / 415.3 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.3115, allocations: 4.594 kB / 415.3 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.3116, allocations: 47.92 kB / 415.4 MB, free: 19.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.3116, allocations: 11.98 kB / 415.4 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.3117, allocations: 15.84 kB / 415.4 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.3117, allocations: 19.94 kB / 415.4 MB, free: 19.88 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 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.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.77e-05/0.3118, allocations: 149.7 kB / 415.6 MB, free: 19.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002855/0.3121, allocations: 173.2 kB / 415.7 MB, free: 19.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003033/0.3124, allocations: 179.5 kB / 415.9 MB, free: 19.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3125, allocations: 4 kB / 415.9 MB, free: 19.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3125, allocations: 0 / 415.9 MB, free: 19.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.3125, allocations: 4 kB / 415.9 MB, free: 19.35 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001581/0.3126, allocations: 229.4 kB / 416.1 MB, free: 19.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.3127, allocations: 7.938 kB / 416.1 MB, free: 19.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001261/0.3128, allocations: 39.91 kB / 416.2 MB, free: 19.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3128, allocations: 4 kB / 416.2 MB, free: 19.03 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.3128, allocations: 0 / 416.2 MB, free: 19.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3128, allocations: 0 / 416.2 MB, free: 19.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3128, allocations: 0 / 416.2 MB, free: 19.03 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003229/0.3132, allocations: 296.1 kB / 416.5 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.717e-05/0.3132, allocations: 116.8 kB / 416.6 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.09e-05/0.3133, allocations: 15.98 kB / 416.6 MB, free: 18.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/0.3134, allocations: 12 kB / 416.6 MB, free: 18.56 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.804e-05/0.3134, allocations: 7.984 kB / 416.6 MB, free: 18.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.3135, allocations: 8 kB / 416.6 MB, free: 18.54 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.414e-05/0.3136, allocations: 143.2 kB / 416.8 MB, free: 18.4 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.62e-07/0.3136, allocations: 0 / 416.8 MB, free: 18.4 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002814/0.3138, allocations: 39.84 kB / 416.8 MB, free: 18.36 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 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.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.0007183/0.3146, allocations: 0.9408 MB / 417.7 MB, free: 17.4 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002795/0.3149, allocations: 162.5 kB / 417.9 MB, free: 17.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3149, allocations: 0 / 417.9 MB, free: 17.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.831e-05/0.3149, allocations: 11.98 kB / 417.9 MB, free: 17.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005575/0.3155, allocations: 146.2 kB / 418.1 MB, free: 17.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.3168, allocations: 1.087 MB / 419.1 MB, free: 15.88 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001486/0.317, allocations: 0.7363 MB / 419.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.245e-05/0.317, allocations: 43.42 kB / 419.9 MB, free: 15.08 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.317, allocations: 0 / 419.9 MB, free: 15.08 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.894/3.211, allocations: 2.536 MB / 422.5 MB, free: 12.54 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:assignClock.u,assignClock.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(sample1.noise.seedState[1]),previous(sample1.noise.seedState[2]),previous(sample1.noise.seedState[3]),sample1.bits,sample1.limited,sample1.limiter.u,sample1.limiter.uMax,sample1.limiter.uMin,sample1.limiter.y,sample1.noise.firstSeed[1],sample1.noise.firstSeed[2],sample1.noise.firstSeed[3],sample1.noise.noise,sample1.noise.noiseMax,sample1.noise.noiseMin,sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],sample1.noise.u,sample1.noise.y,sample1.noisy,sample1.quantization.bits,sample1.quantization.quantized,sample1.quantization.resolution,sample1.quantization.u,sample1.quantization.y,sample1.quantization.yMax,sample1.quantization.yMin,sample1.quantized,sample1.sample1.u,sample1.sample1.y,sample1.u,sample1.y,sample1.y1,sample1.y2,sample1.y3,sample1.y4,sample1.yMax,sample1.yMin,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time