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.001457/0.001457, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.002042/0.002042, allocations: 216.5 kB / 24.53 MB, free: 4.012 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.685/1.685, allocations: 230.5 MB / 258.2 MB, free: 8.016 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.001858/0.001858, allocations: 63.91 kB / 378.6 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.3739, allocations: 53.4 MB / 432 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003861/0.3778, allocations: 1.9 MB / 433.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00165/0.3794, allocations: 0.7594 MB / 434.6 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.3796, allocations: 3.938 kB / 434.6 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002047/0.3798, allocations: 31.72 kB / 434.7 MB, free: 4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002641/0.38, allocations: 27.8 kB / 434.7 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008656/0.3809, allocations: 159.3 kB / 434.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003033/0.3812, allocations: 155.5 kB / 435 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001854/0.3814, allocations: 37.72 kB / 435 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000248/0.3816, allocations: 71.7 kB / 435.1 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001739/0.3818, allocations: 59.7 kB / 435.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.572e-05/0.3818, allocations: 16 kB / 435.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.382, allocations: 59.95 kB / 435.2 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001048/0.3821, allocations: 43.72 kB / 435.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001113/0.3822, allocations: 79.53 kB / 435.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004254/0.3826, allocations: 199.5 kB / 435.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3826, allocations: 4 kB / 435.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.3826, allocations: 0 / 435.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.3826, allocations: 0 / 435.6 MB, free: 3.109 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.000939/0.3836, allocations: 409.5 kB / 436 MB, free: 2.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/0.3836, allocations: 12.03 kB / 436 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.059e-05/0.3837, allocations: 4.375 kB / 436 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.837e-05/0.3837, allocations: 38.75 kB / 436 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001943/0.3839, allocations: 32.78 kB / 436 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005091/0.3844, allocations: 194.9 kB / 436.2 MB, free: 2.371 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.354e-05/0.3844, allocations: 16.11 kB / 436.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.855e-05/0.3845, allocations: 8 kB / 436.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007969/0.3853, allocations: 332.7 kB / 436.6 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.3853, allocations: 0 / 436.6 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.3853, allocations: 0 / 436.6 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.3853, allocations: 4 kB / 436.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002545/0.3856, allocations: 82.61 kB / 436.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005563/0.3861, allocations: 328.6 kB / 437 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005087/0.3866, allocations: 185.2 kB / 437.2 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001994/0.3868, allocations: 93.73 kB / 437.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004051/0.3872, allocations: 55.94 kB / 437.3 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/0.3873, allocations: 42.55 kB / 437.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.382e-06/0.3873, allocations: 0 / 437.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006188/0.3879, allocations: 239.8 kB / 437.6 MB, free: 0.918 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.388, allocations: 114.8 kB / 437.7 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.3882, allocations: 194.6 kB / 437.9 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.3882, allocations: 29.7 kB / 437.9 MB, free: 0.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.304e-05/0.3883, allocations: 104.7 kB / 438 MB, free: 444 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.633e-05/0.3883, allocations: 23.83 kB / 438.1 MB, free: 420 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.902e-05/0.3884, allocations: 41.7 kB / 438.1 MB, free: 372 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.3885, allocations: 330.8 kB / 438.4 MB, free: 32 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.3887, allocations: 40.05 kB / 438.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.3889, allocations: 164.5 kB / 438.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003259/0.3892, allocations: 208.1 kB / 438.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.3892, allocations: 3.938 kB / 438.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004027/0.3896, allocations: 217.3 kB / 439 MB, free: 15.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.339e-05/0.3896, allocations: 11.94 kB / 439 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.3897, allocations: 4 kB / 439 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.754e-05/0.3897, allocations: 4 kB / 439.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001846/0.3899, allocations: 39.92 kB / 439.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.637e-05/0.3899, allocations: 11.98 kB / 439.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.39, allocations: 19.89 kB / 439.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/0.3901, allocations: 12.34 kB / 439.1 MB, free: 15.18 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.0002379/0.3903, allocations: 157.6 kB / 439.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003717/0.3907, allocations: 160 kB / 439.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004569/0.3911, allocations: 179.3 kB / 439.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.3911, allocations: 0 / 439.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.236e-05/0.3912, allocations: 4 kB / 439.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.3912, allocations: 11.97 kB / 439.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003048/0.3915, allocations: 200.5 kB / 439.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/0.3915, allocations: 3.984 kB / 439.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001458/0.3916, allocations: 27.98 kB / 439.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.3916, allocations: 4 kB / 439.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.3917, allocations: 7.938 kB / 439.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3917, allocations: 0 / 439.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3917, allocations: 0 / 439.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004661/0.3921, allocations: 292.1 kB / 440.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.33e-05/0.3922, allocations: 35.83 kB / 440.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.224e-05/0.3923, allocations: 11.98 kB / 440.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.3924, allocations: 4 kB / 440.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.2e-05/0.3924, allocations: 11.98 kB / 440.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.201e-05/0.3924, allocations: 8 kB / 440.2 MB, free: 14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001503/0.3926, allocations: 156 kB / 440.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3926, allocations: 0 / 440.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003393/0.3929, allocations: 28 kB / 440.4 MB, free: 13.82 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.001123/0.3941, allocations: 0.9276 MB / 441.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003546/0.3944, allocations: 136.8 kB / 441.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3944, allocations: 0 / 441.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.451e-05/0.3945, allocations: 16.05 kB / 441.5 MB, free: 12.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006635/0.3951, allocations: 144.3 kB / 441.6 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002619/0.3977, allocations: 2.164 MB / 443.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004346/0.3982, allocations: 0.7398 MB / 444.5 MB, free: 9.453 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.387e-05/0.3982, allocations: 13.48 kB / 444.5 MB, free: 9.441 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.3984, allocations: 43.42 kB / 444.6 MB, free: 9.398 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3984, allocations: 0 / 444.6 MB, free: 9.398 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02656/0.4249, allocations: 4.565 MB / 449.2 MB, free: 4.969 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.66, allocations: 4.062 kB / 449.2 MB, free: 4.965 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.608986948034726]