Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",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.002036/0.002036, allocations: 106.5 kB / 17.06 MB, free: 6.016 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.002644/0.002643, allocations: 195 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.743/2.743, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 47.92 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.357, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.004645/0.3617, allocations: 1.884 MB / 402.1 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002312/0.3641, allocations: 1.173 MB / 403.3 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002252/0.3643, allocations: 3.938 kB / 403.3 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004136/0.3648, allocations: 67.67 kB / 403.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003539/0.3652, allocations: 91.58 kB / 403.5 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009462/0.3661, allocations: 269.7 kB / 403.7 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003264/0.3665, allocations: 179.5 kB / 403.9 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.3666, allocations: 37.53 kB / 403.9 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001675/0.3668, allocations: 75.69 kB / 404 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000147/0.367, allocations: 95.55 kB / 404.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.611e-05/0.367, allocations: 8 kB / 404.1 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.3672, allocations: 59.97 kB / 404.2 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.3673, allocations: 59.75 kB / 404.2 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.3674, allocations: 83.36 kB / 404.3 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003967/0.3678, allocations: 248.9 kB / 404.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3678, allocations: 0 / 404.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3679, allocations: 0 / 404.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.3679, allocations: 0 / 404.5 MB, free: 4.512 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009073/0.3688, allocations: 0.535 MB / 405.1 MB, free: 3.922 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.3688, allocations: 19.97 kB / 405.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.889e-05/0.3689, allocations: 34.75 kB / 405.1 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.374e-05/0.369, allocations: 24.66 kB / 405.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005136/0.3695, allocations: 295.5 kB / 405.4 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.3695, allocations: 12.31 kB / 405.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.932e-05/0.3695, allocations: 7.938 kB / 405.5 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004967/0.37, allocations: 187.7 kB / 405.6 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.3701, allocations: 4 kB / 405.7 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.3701, allocations: 4 kB / 405.7 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.3701, allocations: 0 / 405.7 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001399/0.3702, allocations: 43.91 kB / 405.7 MB, free: 3.227 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006229/0.3709, allocations: 395.1 kB / 406.1 MB, free: 2.781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003058/0.3712, allocations: 150.5 kB / 406.2 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.3713, allocations: 55.42 kB / 406.3 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.321e-05/0.3713, allocations: 7.984 kB / 406.3 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002011/0.3716, allocations: 83.33 kB / 406.4 MB, free: 2.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.623e-06/0.3716, allocations: 0 / 406.4 MB, free: 2.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004527/0.372, allocations: 169.2 kB / 406.5 MB, free: 2.258 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001566/0.3722, allocations: 196.3 kB / 406.7 MB, free: 2.023 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003548/0.3726, allocations: 330.6 kB / 407.1 MB, free: 1.691 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.3726, allocations: 33.7 kB / 407.1 MB, free: 1.652 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.3727, allocations: 120.4 kB / 407.2 MB, free: 1.527 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.324e-05/0.3727, allocations: 19.8 kB / 407.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.152e-05/0.3728, allocations: 33.7 kB / 407.3 MB, free: 1.469 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.373, allocations: 338.8 kB / 407.6 MB, free: 1.129 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.437e-05/0.3731, allocations: 27.98 kB / 407.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.3733, allocations: 99.77 kB / 407.7 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002639/0.3735, allocations: 106.2 kB / 407.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.3736, allocations: 0 / 407.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003789/0.3739, allocations: 141.4 kB / 408 MB, free: 0.707 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.374, allocations: 8 kB / 408 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.374, allocations: 0 / 408 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.432e-05/0.374, allocations: 4 kB / 408 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/0.3742, allocations: 23.98 kB / 408 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.3743, allocations: 11.88 kB / 408 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001373/0.3744, allocations: 19.77 kB / 408 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.3744, allocations: 4 kB / 408 MB, free: 0.6367 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0002158/0.3747, allocations: 158.3 kB / 408.2 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000176/0.3748, allocations: 81.34 kB / 408.3 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.876e-05/0.375, allocations: 29.7 kB / 408.3 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.697e-06/0.375, allocations: 4 kB / 408.3 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.375, allocations: 0 / 408.3 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.375, allocations: 3.938 kB / 408.3 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003415/0.3754, allocations: 245.6 kB / 408.5 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3754, allocations: 0 / 408.5 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.3755, allocations: 15.98 kB / 408.6 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.3755, allocations: 0 / 408.6 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.3756, allocations: 12.09 kB / 408.6 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.3756, allocations: 3.938 kB / 408.6 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.3756, allocations: 4.047 kB / 408.6 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005558/0.3762, allocations: 183.2 kB / 408.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001735/0.3763, allocations: 120.7 kB / 408.9 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.818e-05/0.3764, allocations: 8.062 kB / 408.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.3765, allocations: 4 kB / 408.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.045e-05/0.3766, allocations: 19.92 kB / 408.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.371e-05/0.3766, allocations: 4 kB / 408.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004262/0.3771, allocations: 245.9 kB / 409.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.144e-06/0.3771, allocations: 0 / 409.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004824/0.3776, allocations: 39.94 kB / 409.2 MB, free: 15.36 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002197/0.3798, allocations: 1.021 MB / 410.2 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003889/0.3802, allocations: 99.77 kB / 410.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.3802, allocations: 0 / 410.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002448/0.3805, allocations: 31.92 kB / 410.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006767/0.3812, allocations: 72.83 kB / 410.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003664/0.3848, allocations: 2.279 MB / 412.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004692/0.3853, allocations: 0.7591 MB / 413.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001371/0.3855, allocations: 25.53 kB / 413.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.3856, allocations: 63.41 kB / 413.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3856, allocations: 0 / 413.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03322/0.4189, allocations: 5.653 MB / 419.2 MB, free: 5.473 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.743/10.16, allocations: 0.625 kB / 419.2 MB, free: 5.473 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches