Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 117.4 kB / 17.07 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 194.9 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 51.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3627/0.364, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.00425/0.3683, allocations: 1.563 MB / 401.8 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.3693, allocations: 487.5 kB / 402.3 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.3695, allocations: 7.938 kB / 402.3 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.159e-05/0.3696, allocations: 3.938 kB / 402.3 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000158/0.3697, allocations: 15.86 kB / 402.3 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003005/0.37, allocations: 51.83 kB / 402.3 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001095/0.3702, allocations: 43.84 kB / 402.4 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.3703, allocations: 16.17 kB / 402.4 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.651e-05/0.3704, allocations: 19.88 kB / 402.4 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.475e-05/0.3705, allocations: 31.84 kB / 402.4 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.138e-05/0.3705, allocations: 4 kB / 402.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.116e-05/0.3705, allocations: 0 / 402.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.37e-05/0.3706, allocations: 11.92 kB / 402.5 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.651e-05/0.3706, allocations: 31.81 kB / 402.5 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001871/0.3708, allocations: 62.69 kB / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.3709, allocations: 0 / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3709, allocations: 0 / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.3709, allocations: 0 / 402.6 MB, free: 6.453 MB / 318.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.0006332/0.3715, allocations: 375.1 kB / 402.9 MB, free: 6.039 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.746e-05/0.3716, allocations: 12.03 kB / 402.9 MB, free: 6.027 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.067e-05/0.3716, allocations: 38.67 kB / 403 MB, free: 5.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.32e-05/0.3717, allocations: 8.891 kB / 403 MB, free: 5.973 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00039/0.3721, allocations: 199.4 kB / 403.2 MB, free: 5.742 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.3721, allocations: 384 / 403.2 MB, free: 5.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.804e-05/0.3721, allocations: 8.375 kB / 403.2 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003332/0.3725, allocations: 112.9 kB / 403.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.3725, allocations: 4 kB / 403.3 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.938e-06/0.3725, allocations: 0 / 403.3 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.3725, allocations: 4 kB / 403.3 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.34e-05/0.3726, allocations: 19.92 kB / 403.3 MB, free: 5.578 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003838/0.373, allocations: 261.8 kB / 403.6 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.939e-05/0.3731, allocations: 49.09 kB / 403.6 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.805e-05/0.3732, allocations: 21.77 kB / 403.6 MB, free: 5.176 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.3732, allocations: 4 kB / 403.7 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.891e-05/0.3732, allocations: 30.56 kB / 403.7 MB, free: 5.133 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.3733, allocations: 0 / 403.7 MB, free: 5.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002767/0.3735, allocations: 73.66 kB / 403.8 MB, free: 5.055 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.934e-05/0.3736, allocations: 85.05 kB / 403.8 MB, free: 4.953 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.3738, allocations: 133.8 kB / 404 MB, free: 4.812 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.3738, allocations: 25.7 kB / 404 MB, free: 4.781 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.919e-05/0.3739, allocations: 96.12 kB / 404.1 MB, free: 4.684 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.794e-05/0.3739, allocations: 3.938 kB / 404.1 MB, free: 4.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.932e-05/0.3739, allocations: 17.67 kB / 404.1 MB, free: 4.656 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.374, allocations: 326.9 kB / 404.4 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.091e-05/0.3741, allocations: 8 kB / 404.4 MB, free: 4.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.529e-05/0.3741, allocations: 25.64 kB / 404.5 MB, free: 4.289 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.914e-05/0.3742, allocations: 25.7 kB / 404.5 MB, free: 4.258 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3742, allocations: 64 / 404.5 MB, free: 4.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001338/0.3744, allocations: 57.62 kB / 404.5 MB, free: 4.195 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.3744, allocations: 4 kB / 404.5 MB, free: 4.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.3744, allocations: 4 kB / 404.5 MB, free: 4.188 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.3744, allocations: 0 / 404.5 MB, free: 4.188 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.713e-05/0.3745, allocations: 7.984 kB / 404.6 MB, free: 4.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.3745, allocations: 0 / 404.6 MB, free: 4.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.657e-05/0.3746, allocations: 4 kB / 404.6 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.3746, allocations: 0 / 404.6 MB, free: 4.176 MB / 318.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 8.398e-05/0.3747, allocations: 121.8 kB / 404.7 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.324e-05/0.3747, allocations: 49.58 kB / 404.7 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.595e-05/0.3748, allocations: 11.88 kB / 404.7 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.3748, allocations: 0 / 404.7 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3748, allocations: 0 / 404.7 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3748, allocations: 0 / 404.7 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001929/0.375, allocations: 177.5 kB / 404.9 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.375, allocations: 0 / 404.9 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-05/0.3751, allocations: 7.984 kB / 404.9 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.3751, allocations: 4.031 kB / 404.9 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.3751, allocations: 0 / 404.9 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.3751, allocations: 7.938 kB / 404.9 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3751, allocations: 0 / 404.9 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001621/0.3753, allocations: 164.3 kB / 405.1 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.47e-05/0.3753, allocations: 97.05 kB / 405.2 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.3754, allocations: 4.031 kB / 405.2 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.44e-05/0.3754, allocations: 3.938 kB / 405.2 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.413e-05/0.3755, allocations: 4 kB / 405.2 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.3755, allocations: 0 / 405.2 MB, free: 3.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.563e-05/0.3756, allocations: 113.8 kB / 405.3 MB, free: 3.32 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3756, allocations: 0 / 405.3 MB, free: 3.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002187/0.3758, allocations: 8 kB / 405.3 MB, free: 3.312 MB / 318.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.0004557/0.3763, allocations: 0.6975 MB / 406 MB, free: 2.586 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001433/0.3764, allocations: 27.92 kB / 406 MB, free: 2.559 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3764, allocations: 0 / 406 MB, free: 2.559 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.841e-05/0.3765, allocations: 12.14 kB / 406.1 MB, free: 2.547 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003462/0.3768, allocations: 18.69 kB / 406.1 MB, free: 2.531 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.3781, allocations: 1.312 MB / 407.4 MB, free: 1.129 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.3784, allocations: 0.6962 MB / 408.1 MB, free: 416 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.388e-05/0.3784, allocations: 0 / 408.1 MB, free: 416 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.397e-05/0.3785, allocations: 23.42 kB / 408.1 MB, free: 392 kB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3785, allocations: 0 / 408.1 MB, free: 392 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02201/0.4005, allocations: 1.61 MB / 409.7 MB, free: 14.89 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.952/8.353, allocations: 11.11 kB / 409.7 MB, free: 14.89 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches