Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 107.9 kB / 18.48 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 198.5 kB / 21.43 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 225.6 MB / 249.8 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 47.92 kB / 366.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1146, allocations: 52.15 MB / 418.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.003178/0.1178, allocations: 1.578 MB / 420.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009855/0.1188, allocations: 0.4987 MB / 420.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.494e-05/0.1189, allocations: 4 kB / 420.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.401e-05/0.119, allocations: 11.86 kB / 420.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001548/0.1191, allocations: 7.922 kB / 420.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003087/0.1194, allocations: 51.83 kB / 420.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001376/0.1196, allocations: 47.78 kB / 420.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.1197, allocations: 16.17 kB / 420.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.9e-05/0.1198, allocations: 23.92 kB / 420.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.699e-05/0.1198, allocations: 27.78 kB / 420.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.1199, allocations: 4 kB / 420.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.397e-05/0.1199, allocations: 4 kB / 420.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.867e-05/0.1199, allocations: 11.98 kB / 420.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.013e-05/0.12, allocations: 27.75 kB / 420.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001556/0.1201, allocations: 55.73 kB / 420.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.1201, allocations: 0 / 420.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1202, allocations: 3.938 kB / 420.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.1202, allocations: 0 / 420.9 MB, free: 10.23 MB / 350.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.0006697/0.1208, allocations: 387 kB / 421.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/0.1209, allocations: 8.031 kB / 421.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.765e-05/0.1209, allocations: 192 / 421.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.477e-05/0.121, allocations: 42.73 kB / 421.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.764e-05/0.121, allocations: 8.891 kB / 421.3 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000348/0.1213, allocations: 206.2 kB / 421.5 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.1214, allocations: 4.375 kB / 421.5 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.176e-05/0.1214, allocations: 8.125 kB / 421.5 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003552/0.1217, allocations: 117.9 kB / 421.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.1217, allocations: 0 / 421.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.1218, allocations: 0 / 421.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.1218, allocations: 4 kB / 421.6 MB, free: 9.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.218e-05/0.1219, allocations: 23.92 kB / 421.7 MB, free: 9.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000408/0.1223, allocations: 274.5 kB / 421.9 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001308/0.1224, allocations: 67.78 kB / 422 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.128e-05/0.1225, allocations: 34.62 kB / 422 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.1225, allocations: 0 / 422 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/0.1225, allocations: 38.5 kB / 422.1 MB, free: 8.812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.92e-07/0.1225, allocations: 4 kB / 422.1 MB, free: 8.809 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002965/0.1228, allocations: 81.56 kB / 422.1 MB, free: 8.723 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.072e-05/0.1229, allocations: 110.8 kB / 422.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.1231, allocations: 141.8 kB / 422.4 MB, free: 8.441 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.1231, allocations: 25.7 kB / 422.4 MB, free: 8.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.604e-05/0.1231, allocations: 92.52 kB / 422.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.1232, allocations: 7.938 kB / 422.5 MB, free: 8.309 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.896e-05/0.1232, allocations: 17.72 kB / 422.5 MB, free: 8.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1233, allocations: 322.8 kB / 422.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.507e-05/0.1234, allocations: 7.984 kB / 422.9 MB, free: 7.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.652e-05/0.1234, allocations: 39.36 kB / 422.9 MB, free: 7.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.867e-05/0.1235, allocations: 47.42 kB / 422.9 MB, free: 7.844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1235, allocations: 3.938 kB / 422.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001386/0.1237, allocations: 69.58 kB / 423 MB, free: 7.766 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.1237, allocations: 13.98 kB / 423 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1237, allocations: 0 / 423 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.1237, allocations: 4 kB / 423 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.825e-05/0.1238, allocations: 4 kB / 423 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.206e-06/0.1238, allocations: 4 kB / 423 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.328e-05/0.1239, allocations: 3.984 kB / 423 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.1239, allocations: 4 kB / 423 MB, free: 7.734 MB / 350.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.525e-05/0.124, allocations: 122.4 kB / 423.2 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.233e-05/0.124, allocations: 61.58 kB / 423.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.434e-05/0.1241, allocations: 7.875 kB / 423.2 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.1241, allocations: 4 kB / 423.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.1241, allocations: 0 / 423.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1241, allocations: 0 / 423.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001926/0.1243, allocations: 177.6 kB / 423.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1243, allocations: 0 / 423.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.138e-05/0.1243, allocations: 11.94 kB / 423.4 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1243, allocations: 0 / 423.4 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/0.1243, allocations: 4 kB / 423.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1243, allocations: 4.062 kB / 423.4 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1243, allocations: 0 / 423.4 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002046/0.1246, allocations: 181.1 kB / 423.6 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.54e-05/0.1246, allocations: 97.17 kB / 423.7 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.1246, allocations: 4 kB / 423.7 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.211e-05/0.1247, allocations: 11.98 kB / 423.7 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.317e-05/0.1248, allocations: 0 / 423.7 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-06/0.1248, allocations: 3.938 kB / 423.7 MB, free: 6.949 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.126e-05/0.1248, allocations: 117.4 kB / 423.8 MB, free: 6.836 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1248, allocations: 0 / 423.8 MB, free: 6.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002235/0.1251, allocations: 4 kB / 423.8 MB, free: 6.832 MB / 350.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.0005554/0.1256, allocations: 0.7164 MB / 424.6 MB, free: 6.086 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001622/0.1258, allocations: 35.91 kB / 424.6 MB, free: 6.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.1258, allocations: 4 kB / 424.6 MB, free: 6.047 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.872e-05/0.1258, allocations: 4.25 kB / 424.6 MB, free: 6.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003787/0.1262, allocations: 28.02 kB / 424.6 MB, free: 6.016 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001456/0.1277, allocations: 1.395 MB / 426 MB, free: 4.508 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/0.128, allocations: 0.7 MB / 426.7 MB, free: 3.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.913e-05/0.128, allocations: 0 / 426.7 MB, free: 3.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.515e-05/0.128, allocations: 23.44 kB / 426.7 MB, free: 3.758 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.128, allocations: 0 / 426.7 MB, free: 3.758 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01843/0.1465, allocations: 1.778 MB / 428.5 MB, free: 2.125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.753/7.9, allocations: 12.05 kB / 428.5 MB, free: 2.113 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 10.316743979987223]