Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008414/0.0008414, allocations: 177.5 kB / 16.77 MB, free: 4.926 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.133/1.133, allocations: 205.4 MB / 222.9 MB, free: 8.918 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007186/0.0007186, allocations: 82.41 kB / 271.3 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05731/0.05731, allocations: 12.2 MB / 331.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003753/0.0003754, allocations: 12 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06335/0.06374, allocations: 50.29 MB / 442.5 MB, free: 16.54 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample): time 0.001349/0.06512, allocations: 1.242 MB / 443.7 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006524/0.0658, allocations: 0.5156 MB / 444.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.327e-05/0.06589, allocations: 0 / 444.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.133e-05/0.06594, allocations: 11.92 kB / 444.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.06605, allocations: 3.938 kB / 444.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002152/0.06627, allocations: 47.89 kB / 444.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.056e-05/0.06636, allocations: 47.78 kB / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.06648, allocations: 20.12 kB / 444.4 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.519e-05/0.06657, allocations: 19.91 kB / 444.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.8e-05/0.06662, allocations: 23.86 kB / 444.4 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.425e-05/0.06664, allocations: 4 kB / 444.4 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.121e-05/0.06666, allocations: 0 / 444.4 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.958e-05/0.0667, allocations: 11.92 kB / 444.4 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.811e-05/0.06673, allocations: 45.58 kB / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.739e-05/0.06679, allocations: 43.86 kB / 444.5 MB, free: 14.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.0668, allocations: 4 kB / 444.5 MB, free: 14.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.06681, allocations: 0 / 444.5 MB, free: 14.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.246e-06/0.06681, allocations: 0 / 444.5 MB, free: 14.48 MB / 298.7 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.0003082/0.06713, allocations: 371.4 kB / 444.9 MB, free: 14.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.06717, allocations: 8.031 kB / 444.9 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.716e-05/0.0672, allocations: 34.75 kB / 444.9 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.3e-05/0.06723, allocations: 8.844 kB / 444.9 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.06736, allocations: 192.1 kB / 445.1 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.496e-06/0.06738, allocations: 12.36 kB / 445.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.796e-06/0.06739, allocations: 4.375 kB / 445.2 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002176/0.06762, allocations: 113 kB / 445.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.06763, allocations: 3.938 kB / 445.3 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.06765, allocations: 0 / 445.3 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.06766, allocations: 7.938 kB / 445.3 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.019e-05/0.06773, allocations: 19.98 kB / 445.3 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002207/0.06796, allocations: 265.7 kB / 445.6 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.932e-05/0.06804, allocations: 57.14 kB / 445.6 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.025e-05/0.06809, allocations: 17.78 kB / 445.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.275e-05/0.06811, allocations: 0 / 445.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.088e-05/0.06813, allocations: 30.56 kB / 445.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.61e-07/0.06813, allocations: 0 / 445.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002017/0.06834, allocations: 81.52 kB / 445.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.473e-05/0.06837, allocations: 81.05 kB / 445.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.951e-05/0.06846, allocations: 145.6 kB / 446 MB, free: 12.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.482e-06/0.06847, allocations: 25.7 kB / 446 MB, free: 12.79 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.703e-05/0.0685, allocations: 88.39 kB / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.106e-05/0.06852, allocations: 15.89 kB / 446.1 MB, free: 12.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.756e-06/0.06853, allocations: 0 / 446.1 MB, free: 12.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.579e-05/0.06857, allocations: 322.7 kB / 446.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.537e-05/0.06861, allocations: 8 kB / 446.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.272e-05/0.06865, allocations: 21.7 kB / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.612e-05/0.06872, allocations: 33.77 kB / 446.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.06873, allocations: 0 / 446.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001002/0.06884, allocations: 61.62 kB / 446.5 MB, free: 12.22 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.06886, allocations: 4.938 kB / 446.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.06886, allocations: 64 / 446.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.879e-06/0.06888, allocations: 4 kB / 446.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.988e-05/0.06894, allocations: 11.98 kB / 446.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.06896, allocations: 0 / 446.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.312e-05/0.06899, allocations: 0 / 446.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.41e-06/0.06901, allocations: 4 kB / 446.5 MB, free: 12.2 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.852e-05/0.06906, allocations: 130.4 kB / 446.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.296e-05/0.06911, allocations: 41.61 kB / 446.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.144e-05/0.06913, allocations: 11.86 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.06914, allocations: 7.984 kB / 446.7 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.06915, allocations: 0 / 446.7 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.06916, allocations: 0 / 446.7 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001094/0.06927, allocations: 173.6 kB / 446.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.06928, allocations: 4 kB / 446.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-05/0.06932, allocations: 7.938 kB / 446.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.06933, allocations: 3.984 kB / 446.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.49e-06/0.06934, allocations: 0 / 446.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.06935, allocations: 4 kB / 446.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.06936, allocations: 4 kB / 446.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001179/0.06948, allocations: 168.2 kB / 447.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.208e-05/0.06952, allocations: 93 kB / 447.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.216e-05/0.06954, allocations: 0 / 447.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.693e-05/0.06961, allocations: 12.03 kB / 447.2 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.404e-05/0.06964, allocations: 0 / 447.2 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-06/0.06965, allocations: 3.984 kB / 447.2 MB, free: 11.44 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.246e-05/0.06969, allocations: 103.3 kB / 447.3 MB, free: 11.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.0697, allocations: 4 kB / 447.3 MB, free: 11.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002022/0.06991, allocations: 4 kB / 447.3 MB, free: 11.33 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002402/0.07015, allocations: 0.6936 MB / 448 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001003/0.07026, allocations: 23.98 kB / 448 MB, free: 10.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.07027, allocations: 4.156 kB / 448 MB, free: 10.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.379e-05/0.07031, allocations: 11.98 kB / 448 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.07063, allocations: 31.89 kB / 448.1 MB, free: 10.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005811/0.07123, allocations: 0.5057 MB / 448.6 MB, free: 9.973 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.206e-05/0.07133, allocations: 0.6927 MB / 449.3 MB, free: 9.254 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.471e-05/0.07137, allocations: 19.42 kB / 449.3 MB, free: 9.234 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.07138, allocations: 7.938 kB / 449.3 MB, free: 9.227 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.252/2.324, allocations: 0.97 MB / 450.3 MB, free: 8.258 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,Time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.u,sample1.y,shiftSample.resolution,shiftSample.shiftCounter,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time