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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001348/0.001348, allocations: 109.1 kB / 21.22 MB, free: 0.6445 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.001496/0.001496, allocations: 209.3 kB / 24.51 MB, free: 3.941 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.46/1.46, 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.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002727/0.002727, allocations: 63.89 kB / 378.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3704/0.3732, allocations: 53.41 MB / 431.9 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.003064/0.3762, allocations: 1.588 MB / 433.5 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001079/0.3773, allocations: 0.522 MB / 434 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.849e-05/0.3774, allocations: 0 / 434 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.047e-05/0.3774, allocations: 11.88 kB / 434 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001453/0.3776, allocations: 15.92 kB / 434.1 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003555/0.378, allocations: 59.77 kB / 434.1 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001243/0.3781, allocations: 51.78 kB / 434.2 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.3782, allocations: 14.28 kB / 434.2 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.3783, allocations: 23.92 kB / 434.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.538e-05/0.3784, allocations: 23.86 kB / 434.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.537e-05/0.3784, allocations: 0 / 434.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.393e-05/0.3784, allocations: 12 kB / 434.2 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.57e-05/0.3785, allocations: 19.91 kB / 434.3 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.452e-05/0.3785, allocations: 15.88 kB / 434.3 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001686/0.3787, allocations: 71.61 kB / 434.3 MB, free: 4.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3787, allocations: 0 / 434.3 MB, free: 4.039 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3787, allocations: 0 / 434.3 MB, free: 4.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.3787, allocations: 0 / 434.3 MB, free: 4.039 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.0004927/0.3792, allocations: 305.9 kB / 434.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.3792, allocations: 8.031 kB / 434.6 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.76e-05/0.3792, allocations: 12.12 kB / 434.7 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.564e-05/0.3793, allocations: 34.69 kB / 434.7 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001503/0.3794, allocations: 20.88 kB / 434.7 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002961/0.3797, allocations: 150.3 kB / 434.9 MB, free: 3.461 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.3797, allocations: 7.938 kB / 434.9 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.3798, allocations: 4 kB / 434.9 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003167/0.3801, allocations: 113.9 kB / 435 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.3801, allocations: 3.938 kB / 435 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.3801, allocations: 0 / 435 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.3801, allocations: 4 kB / 435 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.408e-05/0.3802, allocations: 23.98 kB / 435 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000347/0.3805, allocations: 245.6 kB / 435.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001335/0.3807, allocations: 71.78 kB / 435.3 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.98e-05/0.3807, allocations: 30.62 kB / 435.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/0.3808, allocations: 0 / 435.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/0.3808, allocations: 34.56 kB / 435.4 MB, free: 2.816 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.3808, allocations: 0 / 435.4 MB, free: 2.816 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002952/0.3811, allocations: 89.5 kB / 435.5 MB, free: 2.723 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.373e-05/0.3812, allocations: 110.8 kB / 435.6 MB, free: 2.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.3813, allocations: 145.7 kB / 435.7 MB, free: 2.438 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.3813, allocations: 29.7 kB / 435.8 MB, free: 2.402 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.877e-05/0.3814, allocations: 92.12 kB / 435.8 MB, free: 2.309 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.592e-05/0.3814, allocations: 0 / 435.8 MB, free: 2.309 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.275e-05/0.3814, allocations: 25.67 kB / 435.9 MB, free: 2.277 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.3816, allocations: 315.2 kB / 436.2 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.389e-05/0.3816, allocations: 12 kB / 436.2 MB, free: 1.949 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.609e-05/0.3817, allocations: 35.42 kB / 436.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.72e-05/0.3818, allocations: 47.36 kB / 436.3 MB, free: 1.844 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3818, allocations: 3.938 kB / 436.3 MB, free: 1.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000145/0.3819, allocations: 73.58 kB / 436.3 MB, free: 1.762 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.3819, allocations: 8 kB / 436.4 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3819, allocations: 0 / 436.4 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.3819, allocations: 0 / 436.4 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.053e-05/0.382, allocations: 8 kB / 436.4 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.382, allocations: 3.938 kB / 436.4 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.537e-05/0.3821, allocations: 7.984 kB / 436.4 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.5e-05/0.3821, allocations: 8 kB / 436.4 MB, free: 1.727 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 9.058e-05/0.3822, allocations: 113.8 kB / 436.5 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.139e-05/0.3823, allocations: 65.62 kB / 436.6 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.283e-05/0.3823, allocations: 3.969 kB / 436.6 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.3823, allocations: 4 kB / 436.6 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.3823, allocations: 3.938 kB / 436.6 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3823, allocations: 0 / 436.6 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001863/0.3825, allocations: 148.6 kB / 436.7 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3825, allocations: 96 / 436.7 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.729e-05/0.3826, allocations: 15.98 kB / 436.7 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.3826, allocations: 3.984 kB / 436.7 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.3826, allocations: 4 kB / 436.7 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3826, allocations: 4.062 kB / 436.7 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3826, allocations: 3.938 kB / 436.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002042/0.3828, allocations: 177.1 kB / 436.9 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.209e-05/0.3828, allocations: 15.94 kB / 436.9 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.3829, allocations: 8 kB / 436.9 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.813e-05/0.3829, allocations: 0 / 436.9 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.734e-05/0.383, allocations: 7.938 kB / 436.9 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/0.383, allocations: 3.984 kB / 437 MB, free: 1.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.335e-05/0.3831, allocations: 114.8 kB / 437.1 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3831, allocations: 0 / 437.1 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000228/0.3833, allocations: 8 kB / 437.1 MB, free: 0.9531 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.0005503/0.3838, allocations: 0.7102 MB / 437.8 MB, free: 216 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001431/0.384, allocations: 31.86 kB / 437.8 MB, free: 184 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.384, allocations: 4 kB / 437.8 MB, free: 180 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.728e-05/0.384, allocations: 11.98 kB / 437.8 MB, free: 168 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003879/0.3844, allocations: 32.25 kB / 437.9 MB, free: 136 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.386, allocations: 1.409 MB / 439.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.669e-05/0.3861, allocations: 78.08 kB / 439.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.873e-05/0.3862, allocations: 8.172 kB / 439.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.958e-05/0.3862, allocations: 19.44 kB / 439.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3862, allocations: 0 / 439.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02826/0.4145, allocations: 1.975 MB / 441.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.2, allocations: 11.3 kB / 441.4 MB, free: 12.64 MB / 350.1 MB " [Timeout remaining time 649] (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 --stepSize=1.79319e-05 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.828329185023904]