Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.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.001258/0.001258, 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.001431/0.001431, allocations: 205.5 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.477/1.477, 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.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 55.91 kB / 378.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.3465, allocations: 53.41 MB / 431.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.004049/0.3506, allocations: 1.572 MB / 433.5 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.3518, allocations: 0.4987 MB / 434 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.3519, allocations: 4 kB / 434 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.317e-05/0.352, allocations: 7.922 kB / 434 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001766/0.3522, allocations: 15.81 kB / 434 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004026/0.3526, allocations: 55.81 kB / 434 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001485/0.3527, allocations: 47.8 kB / 434.1 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.3529, allocations: 18.27 kB / 434.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001514/0.353, allocations: 31.92 kB / 434.1 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.714e-05/0.3531, allocations: 19.86 kB / 434.2 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.08e-05/0.3531, allocations: 4 kB / 434.2 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.378e-05/0.3532, allocations: 8 kB / 434.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.373e-05/0.3532, allocations: 23.86 kB / 434.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.111e-05/0.3533, allocations: 19.86 kB / 434.2 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002144/0.3535, allocations: 59.67 kB / 434.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.3535, allocations: 0 / 434.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.3535, allocations: 0 / 434.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.3535, allocations: 0 / 434.3 MB, free: 4.078 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.000672/0.3542, allocations: 306 kB / 434.6 MB, free: 3.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.965e-05/0.3543, allocations: 12.03 kB / 434.6 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.496e-05/0.3543, allocations: 192 / 434.6 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.789e-05/0.3543, allocations: 34.75 kB / 434.6 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002308/0.3546, allocations: 20.88 kB / 434.6 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004587/0.355, allocations: 146.3 kB / 434.8 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.355, allocations: 4.375 kB / 434.8 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.475e-05/0.3551, allocations: 8.125 kB / 434.8 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000393/0.3555, allocations: 105 kB / 434.9 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.3555, allocations: 4 kB / 434.9 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.3555, allocations: 0 / 434.9 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.3555, allocations: 3.984 kB / 434.9 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.137e-05/0.3556, allocations: 23.92 kB / 434.9 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004313/0.356, allocations: 232.8 kB / 435.2 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/0.3561, allocations: 37.22 kB / 435.2 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.78e-05/0.3562, allocations: 21.77 kB / 435.2 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.254e-05/0.3562, allocations: 0 / 435.2 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.659e-05/0.3562, allocations: 42.5 kB / 435.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.3562, allocations: 0 / 435.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003195/0.3566, allocations: 69.56 kB / 435.3 MB, free: 2.863 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.3567, allocations: 81.11 kB / 435.4 MB, free: 2.766 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.3569, allocations: 140.6 kB / 435.5 MB, free: 2.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.386e-05/0.3569, allocations: 29.7 kB / 435.6 MB, free: 2.586 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.357, allocations: 84.14 kB / 435.6 MB, free: 2.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.598e-05/0.3571, allocations: 3.953 kB / 435.6 MB, free: 2.496 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.26e-05/0.3571, allocations: 21.95 kB / 435.7 MB, free: 2.469 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000225/0.3573, allocations: 326.8 kB / 436 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.686e-05/0.3574, allocations: 4 kB / 436 MB, free: 2.137 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.279e-05/0.3574, allocations: 21.64 kB / 436 MB, free: 2.109 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.151e-05/0.3575, allocations: 33.64 kB / 436 MB, free: 2.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3575, allocations: 0 / 436 MB, free: 2.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001285/0.3576, allocations: 57.73 kB / 436.1 MB, free: 2.008 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3577, allocations: 8.031 kB / 436.1 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.3577, allocations: 0 / 436.1 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.3577, allocations: 0 / 436.1 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.047e-05/0.3578, allocations: 7.984 kB / 436.1 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/0.3578, allocations: 7.938 kB / 436.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.446e-05/0.3578, allocations: 0 / 436.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.3578, allocations: 0 / 436.1 MB, free: 1.984 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0001375/0.358, allocations: 125.8 kB / 436.3 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.936e-05/0.358, allocations: 37.66 kB / 436.3 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.01e-05/0.3581, allocations: 19.8 kB / 436.3 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.718e-06/0.3581, allocations: 3.984 kB / 436.3 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.3581, allocations: 4 kB / 436.3 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.3581, allocations: 0 / 436.3 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002045/0.3583, allocations: 136.7 kB / 436.4 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.3583, allocations: 4 kB / 436.5 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.221e-05/0.3584, allocations: 7.984 kB / 436.5 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.3584, allocations: 3.938 kB / 436.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.3584, allocations: 0 / 436.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3584, allocations: 0 / 436.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3584, allocations: 3.938 kB / 436.5 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002178/0.3586, allocations: 164.3 kB / 436.6 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.526e-05/0.3586, allocations: 15.94 kB / 436.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.756e-05/0.3587, allocations: 0 / 436.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.887e-05/0.3587, allocations: 7.984 kB / 436.7 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.666e-05/0.3588, allocations: 0 / 436.7 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.3588, allocations: 4 kB / 436.7 MB, free: 1.379 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001001/0.3589, allocations: 114 kB / 436.8 MB, free: 1.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3589, allocations: 0 / 436.8 MB, free: 1.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002219/0.3591, allocations: 4 kB / 436.8 MB, free: 1.266 MB / 334.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0005568/0.3597, allocations: 0.6937 MB / 437.5 MB, free: 0.543 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001563/0.3598, allocations: 23.97 kB / 437.5 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3598, allocations: 0 / 437.5 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.9e-05/0.3599, allocations: 7.938 kB / 437.5 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003977/0.3603, allocations: 23.95 kB / 437.5 MB, free: 500 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.3617, allocations: 1.331 MB / 438.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.177e-05/0.3618, allocations: 71.33 kB / 438.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.21e-05/0.3618, allocations: 4 kB / 438.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.988e-05/0.3619, allocations: 15.38 kB / 438.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3619, allocations: 8.031 kB / 438.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02237/0.3843, allocations: 1.764 MB / 440.7 MB, free: 13.31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.28, allocations: 8.594 kB / 440.7 MB, free: 13.3 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.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,time [Calling sys.exit(0), Time elapsed: 13.846197708044201]