Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.001308/0.001308, 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.00149/0.00149, allocations: 219.8 kB / 24.53 MB, free: 4.008 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.529/1.529, 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.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001863/0.001863, allocations: 67.89 kB / 378.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3818/0.3836, allocations: 53.4 MB / 432 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.003668/0.3873, allocations: 1.608 MB / 433.6 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.3885, allocations: 0.5492 MB / 434.1 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.3886, allocations: 7.938 kB / 434.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.566e-05/0.3886, allocations: 7.938 kB / 434.2 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001352/0.3888, allocations: 11.81 kB / 434.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003167/0.3891, allocations: 63.81 kB / 434.2 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001142/0.3892, allocations: 43.89 kB / 434.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.3893, allocations: 12.19 kB / 434.3 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.3894, allocations: 35.86 kB / 434.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.915e-05/0.3895, allocations: 19.86 kB / 434.3 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.071e-05/0.3895, allocations: 7.984 kB / 434.3 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.794e-05/0.3896, allocations: 4 kB / 434.3 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.949e-05/0.3896, allocations: 15.92 kB / 434.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.273e-05/0.3896, allocations: 35.75 kB / 434.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001599/0.3898, allocations: 56.16 kB / 434.5 MB, free: 4.203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3898, allocations: 0 / 434.5 MB, free: 4.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3898, allocations: 0 / 434.5 MB, free: 4.203 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.3898, allocations: 0 / 434.5 MB, free: 4.203 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004839/0.3903, allocations: 317.8 kB / 434.8 MB, free: 3.863 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.3903, allocations: 8.031 kB / 434.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.4e-05/0.3904, allocations: 4.188 kB / 434.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.254e-05/0.3904, allocations: 38.75 kB / 434.8 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.3905, allocations: 16.88 kB / 434.8 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000267/0.3908, allocations: 150.5 kB / 435 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.3908, allocations: 7.938 kB / 435 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.416e-05/0.3908, allocations: 4 kB / 435 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.3911, allocations: 113.9 kB / 435.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.3911, allocations: 0 / 435.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.3911, allocations: 4 kB / 435.1 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.413e-06/0.3911, allocations: 0 / 435.1 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.25e-05/0.3912, allocations: 23.92 kB / 435.1 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003506/0.3916, allocations: 249.6 kB / 435.4 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001199/0.3917, allocations: 63.84 kB / 435.4 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.086e-05/0.3918, allocations: 34.58 kB / 435.5 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.3918, allocations: 3.984 kB / 435.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.321e-05/0.3918, allocations: 42.5 kB / 435.5 MB, free: 2.969 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.012e-06/0.3918, allocations: 0 / 435.5 MB, free: 2.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002655/0.3921, allocations: 81.86 kB / 435.6 MB, free: 2.883 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.504e-05/0.3922, allocations: 114.8 kB / 435.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001684/0.3923, allocations: 153.7 kB / 435.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.3923, allocations: 25.7 kB / 435.9 MB, free: 2.555 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.888e-05/0.3924, allocations: 84.14 kB / 436 MB, free: 2.469 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.573e-05/0.3924, allocations: 11.94 kB / 436 MB, free: 2.457 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.891e-05/0.3925, allocations: 21.66 kB / 436 MB, free: 2.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.3926, allocations: 314.8 kB / 436.3 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.588e-05/0.3926, allocations: 15.98 kB / 436.3 MB, free: 2.098 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.776e-05/0.3927, allocations: 35.42 kB / 436.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001021/0.3928, allocations: 47.36 kB / 436.4 MB, free: 1.992 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3928, allocations: 0 / 436.4 MB, free: 1.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001472/0.3929, allocations: 65.62 kB / 436.5 MB, free: 1.922 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.393, allocations: 6.5 kB / 436.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.393, allocations: 4 kB / 436.5 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.393, allocations: 3.938 kB / 436.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.598e-05/0.3931, allocations: 11.98 kB / 436.5 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.3931, allocations: 4.062 kB / 436.5 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.382e-05/0.3931, allocations: 8 kB / 436.5 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.3931, allocations: 0 / 436.5 MB, free: 1.887 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001075/0.3932, allocations: 121.8 kB / 436.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.552e-05/0.3933, allocations: 53.55 kB / 436.7 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.396e-05/0.3934, allocations: 15.95 kB / 436.7 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.3934, allocations: 0 / 436.7 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.3934, allocations: 7.938 kB / 436.7 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3934, allocations: 0 / 436.7 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002123/0.3936, allocations: 148.7 kB / 436.8 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3936, allocations: 0 / 436.8 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.458e-05/0.3937, allocations: 15.98 kB / 436.9 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.3937, allocations: 0 / 436.9 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.3937, allocations: 0 / 436.9 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.3937, allocations: 4 kB / 436.9 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.3937, allocations: 3.938 kB / 436.9 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000254/0.3939, allocations: 185.2 kB / 437 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.135e-05/0.394, allocations: 19.94 kB / 437.1 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.62e-05/0.394, allocations: 0 / 437.1 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.211e-05/0.3941, allocations: 4 kB / 437.1 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.085e-05/0.3941, allocations: 7.922 kB / 437.1 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.3941, allocations: 0 / 437.1 MB, free: 1.227 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001013/0.3942, allocations: 114.2 kB / 437.2 MB, free: 1.117 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3942, allocations: 7.938 kB / 437.2 MB, free: 1.109 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002299/0.3945, allocations: 15.94 kB / 437.2 MB, free: 1.094 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.000537/0.395, allocations: 0.6985 MB / 437.9 MB, free: 372 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001572/0.3951, allocations: 39.86 kB / 437.9 MB, free: 332 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3952, allocations: 0 / 437.9 MB, free: 332 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.805e-05/0.3952, allocations: 7.984 kB / 438 MB, free: 324 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003649/0.3956, allocations: 28.02 kB / 438 MB, free: 296 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.3972, allocations: 1.41 MB / 439.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.3976, allocations: 0.6963 MB / 440.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.082e-05/0.3977, allocations: 0 / 440.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.283e-05/0.3977, allocations: 15.44 kB / 440.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3977, allocations: 3.938 kB / 440.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02303/0.4207, allocations: 1.844 MB / 442 MB, free: 12.31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.32, allocations: 9.359 kB / 442 MB, free: 12.3 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,subSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,subSample1.factor,subSample1.inferFactor,subSample1.u,subSample1.y,time [Calling sys.exit(0), Time elapsed: 14.045580438978504]