Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001401/0.001401, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001604/0.001604, allocations: 204.7 kB / 24.51 MB, free: 3.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 230.5 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 59.91 kB / 378.5 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2892, allocations: 53.4 MB / 431.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003847/0.293, allocations: 1.84 MB / 433.8 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001432/0.2945, allocations: 0.7011 MB / 434.5 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001609/0.2946, allocations: 7.938 kB / 434.5 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001932/0.2948, allocations: 19.73 kB / 434.5 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002022/0.295, allocations: 23.8 kB / 434.5 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007235/0.2957, allocations: 171.5 kB / 434.7 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002838/0.296, allocations: 151.6 kB / 434.8 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/0.2962, allocations: 43.84 kB / 434.9 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/0.2964, allocations: 67.7 kB / 434.9 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.2965, allocations: 59.69 kB / 435 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.866e-05/0.2966, allocations: 12 kB / 435 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001511/0.2967, allocations: 63.89 kB / 435.1 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001145/0.2969, allocations: 43.84 kB / 435.1 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.632e-05/0.2969, allocations: 47.67 kB / 435.2 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003836/0.2973, allocations: 211.1 kB / 435.4 MB, free: 3.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.2973, allocations: 4 kB / 435.4 MB, free: 3.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2973, allocations: 0 / 435.4 MB, free: 3.016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.2973, allocations: 4 kB / 435.4 MB, free: 3.012 MB / 334.1 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.0008816/0.2982, allocations: 401.6 kB / 435.8 MB, free: 2.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.2983, allocations: 12.03 kB / 435.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.948e-05/0.2983, allocations: 384 / 435.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.998e-05/0.2983, allocations: 46.73 kB / 435.8 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001832/0.2985, allocations: 32.78 kB / 435.8 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004333/0.299, allocations: 194.9 kB / 436 MB, free: 2.277 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.299, allocations: 12.12 kB / 436 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/0.299, allocations: 8 kB / 436.1 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007475/0.2998, allocations: 361.8 kB / 436.4 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.2998, allocations: 3.984 kB / 436.4 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.2998, allocations: 4 kB / 436.4 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.2998, allocations: 0 / 436.4 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002706/0.3001, allocations: 87.88 kB / 436.5 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004081/0.3005, allocations: 292.7 kB / 436.8 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004629/0.3009, allocations: 185 kB / 437 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.3011, allocations: 89.73 kB / 437.1 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004198/0.3015, allocations: 55.94 kB / 437.1 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.3016, allocations: 38.78 kB / 437.2 MB, free: 1.066 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.453e-06/0.3016, allocations: 4 kB / 437.2 MB, free: 1.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006251/0.3022, allocations: 241.2 kB / 437.4 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001552/0.3023, allocations: 114.8 kB / 437.5 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002092/0.3026, allocations: 198.5 kB / 437.7 MB, free: 488 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.3026, allocations: 29.7 kB / 437.7 MB, free: 452 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.728e-05/0.3027, allocations: 104.6 kB / 437.8 MB, free: 340 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.091e-05/0.3027, allocations: 19.97 kB / 437.8 MB, free: 320 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.111e-05/0.3028, allocations: 41.7 kB / 437.9 MB, free: 272 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.3029, allocations: 330.8 kB / 438.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.462e-05/0.303, allocations: 39.98 kB / 438.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002008/0.3032, allocations: 186.8 kB / 438.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002626/0.3035, allocations: 208.1 kB / 438.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.3035, allocations: 7.875 kB / 438.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003367/0.3038, allocations: 217.6 kB / 438.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.3038, allocations: 8 kB / 438.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.3038, allocations: 4 kB / 438.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.3039, allocations: 8 kB / 438.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.304, allocations: 43.92 kB / 438.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/0.304, allocations: 7.938 kB / 438.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.3041, allocations: 15.94 kB / 438.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.98e-05/0.3042, allocations: 16 kB / 439 MB, free: 15.05 MB / 350.1 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 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001465/0.3043, allocations: 149.6 kB / 439.1 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000303/0.3046, allocations: 164.3 kB / 439.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000413/0.305, allocations: 175.3 kB / 439.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.305, allocations: 11.94 kB / 439.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.305, allocations: 3.938 kB / 439.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.305, allocations: 0 / 439.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002191/0.3053, allocations: 180.5 kB / 439.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/0.3053, allocations: 8 kB / 439.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001436/0.3054, allocations: 35.97 kB / 439.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.3054, allocations: 0 / 439.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.3054, allocations: 4 kB / 439.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.3054, allocations: 3.984 kB / 439.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3054, allocations: 0 / 439.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004155/0.3058, allocations: 288.1 kB / 440 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.723e-05/0.3059, allocations: 39.81 kB / 440 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.306, allocations: 8 kB / 440 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.3061, allocations: 15.98 kB / 440 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.203e-05/0.3061, allocations: 7.984 kB / 440 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/0.3062, allocations: 7.984 kB / 440 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001325/0.3063, allocations: 152 kB / 440.2 MB, free: 13.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3063, allocations: 0 / 440.2 MB, free: 13.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003194/0.3066, allocations: 28 kB / 440.2 MB, free: 13.71 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001017/0.3076, allocations: 0.9199 MB / 441.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003457/0.308, allocations: 139.8 kB / 441.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.308, allocations: 0 / 441.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.674e-05/0.308, allocations: 5.188 kB / 441.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006478/0.3087, allocations: 148.8 kB / 441.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002683/0.3113, allocations: 2.189 MB / 443.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000127/0.3115, allocations: 115.5 kB / 443.7 MB, free: 9.965 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.269e-05/0.3115, allocations: 13.48 kB / 443.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.758e-05/0.3116, allocations: 55.41 kB / 443.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3116, allocations: 0 / 443.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02553/0.3372, allocations: 4.674 MB / 448.5 MB, free: 5.359 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.58, allocations: 8 kB / 448.5 MB, free: 5.352 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:assignClock.u,assignClock.y,periodicClock.factor,periodicClock.resolution,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.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.u,sample1.quantization.y,sample1.quantization.yMax,sample1.quantization.yMin,sample1.quantized,sample1.sample1.u,sample1.sample1.y,sample1.u,sample1.y,sample1.yMax,sample1.yMin,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 14.317579364986159]