Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001915/0.001915, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002132/0.002132, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.626/1.626, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001969/0.00197, allocations: 63.89 kB / 358.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3511/0.3531, allocations: 50.55 MB / 408.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.003457/0.3566, allocations: 1.593 MB / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001218/0.3578, allocations: 0.5415 MB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.603e-05/0.3579, allocations: 3.938 kB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.708e-05/0.358, allocations: 3.938 kB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.3582, allocations: 23.8 kB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003342/0.3585, allocations: 59.81 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000119/0.3587, allocations: 51.84 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.376e-05/0.3588, allocations: 8.188 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.3589, allocations: 27.91 kB / 411.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.433e-05/0.359, allocations: 23.86 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.394e-05/0.359, allocations: 0 / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.562e-05/0.359, allocations: 8 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.166e-05/0.3591, allocations: 19.86 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.6e-05/0.3591, allocations: 27.81 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001709/0.3593, allocations: 66.69 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3593, allocations: 0 / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3593, allocations: 0 / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.3593, allocations: 0 / 411.3 MB, free: 14.99 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.000577/0.3599, allocations: 387 kB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.36, allocations: 8.031 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.317e-05/0.36, allocations: 30.75 kB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001801/0.3602, allocations: 24.81 kB / 411.7 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003048/0.3605, allocations: 208.3 kB / 411.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.3606, allocations: 16.06 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.566e-06/0.3606, allocations: 0 / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003166/0.3609, allocations: 117.9 kB / 412.1 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.3609, allocations: 0 / 412.1 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.3609, allocations: 4 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.361, allocations: 4 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.895e-05/0.3611, allocations: 23.97 kB / 412.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003776/0.3614, allocations: 282.5 kB / 412.4 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001247/0.3616, allocations: 67.78 kB / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.525e-05/0.3617, allocations: 30.64 kB / 412.5 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.779e-05/0.3617, allocations: 7.984 kB / 412.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.534e-05/0.3617, allocations: 34.56 kB / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.343e-06/0.3617, allocations: 0 / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002849/0.362, allocations: 85.5 kB / 412.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.655e-05/0.3621, allocations: 111.1 kB / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001672/0.3623, allocations: 153.7 kB / 412.9 MB, free: 13.17 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.3624, allocations: 29.7 kB / 412.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.07e-05/0.3624, allocations: 84.14 kB / 413 MB, free: 13.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.401e-05/0.3624, allocations: 0 / 413 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.721e-05/0.3625, allocations: 29.66 kB / 413 MB, free: 13.01 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.3627, allocations: 314.8 kB / 413.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.601e-05/0.3627, allocations: 7.984 kB / 413.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.312e-05/0.3628, allocations: 43.41 kB / 413.4 MB, free: 12.63 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001056/0.3629, allocations: 47.36 kB / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3629, allocations: 0 / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001564/0.3631, allocations: 73.56 kB / 413.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.3631, allocations: 4 kB / 413.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.3631, allocations: 0 / 413.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.3632, allocations: 4 kB / 413.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.3633, allocations: 11.98 kB / 413.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.3633, allocations: 3.938 kB / 413.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.058e-05/0.3634, allocations: 4 kB / 413.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-06/0.3634, allocations: 128 / 413.5 MB, free: 12.47 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.000137/0.3636, allocations: 125.8 kB / 413.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.3637, allocations: 53.55 kB / 413.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.254e-05/0.3637, allocations: 15.86 kB / 413.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.3637, allocations: 0 / 413.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/0.3638, allocations: 3.938 kB / 413.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.3638, allocations: 4 kB / 413.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002108/0.364, allocations: 169.6 kB / 413.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.364, allocations: 7.938 kB / 413.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.641e-05/0.3641, allocations: 12.05 kB / 413.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.3641, allocations: 4 kB / 413.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.3641, allocations: 0 / 413.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3641, allocations: 3.938 kB / 413.9 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/0.3641, allocations: 11.92 kB / 413.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002187/0.3643, allocations: 177.2 kB / 414.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.532e-05/0.3644, allocations: 93.05 kB / 414.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.3644, allocations: 4 kB / 414.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.15e-05/0.3645, allocations: 7.984 kB / 414.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.488e-05/0.3646, allocations: 7.875 kB / 414.2 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.3646, allocations: 4 kB / 414.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.575e-05/0.3647, allocations: 110.2 kB / 414.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3647, allocations: 4 kB / 414.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002262/0.3649, allocations: 8 kB / 414.3 MB, free: 11.55 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.0005332/0.3654, allocations: 0.7063 MB / 415 MB, free: 10.81 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001544/0.3656, allocations: 39.91 kB / 415.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3656, allocations: 0 / 415.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.268e-05/0.3657, allocations: 8 kB / 415.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003731/0.3661, allocations: 35.88 kB / 415.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001599/0.3677, allocations: 1.395 MB / 416.5 MB, free: 9.223 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004832/0.3682, allocations: 0.7002 MB / 417.2 MB, free: 8.496 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.406e-05/0.3682, allocations: 0 / 417.2 MB, free: 8.496 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.002e-05/0.3683, allocations: 19.42 kB / 417.2 MB, free: 8.477 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3683, allocations: 0 / 417.2 MB, free: 8.477 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02794/0.3963, allocations: 1.747 MB / 419 MB, free: 6.848 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.732/9.129, allocations: 10.62 kB / 419 MB, free: 6.84 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches