Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",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.001614/0.001614, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.002102/0.002103, allocations: 196 kB / 18 MB, free: 5.105 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.163/2.163, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 47.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4099/0.4119, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.00683/0.4188, allocations: 1.887 MB / 402.1 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004258/0.4231, allocations: 1.157 MB / 403.3 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003379/0.4236, allocations: 11.94 kB / 403.3 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006321/0.4242, allocations: 63.67 kB / 403.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006544/0.425, allocations: 91.58 kB / 403.4 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001674/0.4267, allocations: 267.9 kB / 403.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005134/0.4272, allocations: 171.5 kB / 403.9 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002075/0.4274, allocations: 37.52 kB / 403.9 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002339/0.4277, allocations: 71.7 kB / 404 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002427/0.428, allocations: 87.59 kB / 404.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.399e-05/0.428, allocations: 12 kB / 404.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003353/0.4284, allocations: 63.91 kB / 404.1 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.4285, allocations: 51.81 kB / 404.2 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001672/0.4287, allocations: 83.48 kB / 404.3 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006744/0.4294, allocations: 240.8 kB / 404.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.4294, allocations: 3.938 kB / 404.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4295, allocations: 0 / 404.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.4295, allocations: 0 / 404.5 MB, free: 4.551 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.001266/0.4308, allocations: 0.5312 MB / 405 MB, free: 3.965 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.85e-05/0.4308, allocations: 11.89 kB / 405 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.269e-05/0.4309, allocations: 42.73 kB / 405.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.4311, allocations: 24.66 kB / 405.1 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007584/0.4318, allocations: 299.5 kB / 405.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.4319, allocations: 8.312 kB / 405.4 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.506e-05/0.4319, allocations: 11.94 kB / 405.4 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006737/0.4326, allocations: 179.8 kB / 405.6 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.4327, allocations: 3.938 kB / 405.6 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.4327, allocations: 0 / 405.6 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.4327, allocations: 0 / 405.6 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002653/0.433, allocations: 43.97 kB / 405.6 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.4342, allocations: 474.4 kB / 406.1 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005792/0.4348, allocations: 142.5 kB / 406.2 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002157/0.435, allocations: 59.36 kB / 406.3 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.916e-05/0.4351, allocations: 8.062 kB / 406.3 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003545/0.4355, allocations: 101 kB / 406.4 MB, free: 2.383 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 3.827e-06/0.4355, allocations: 0 / 406.4 MB, free: 2.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008273/0.4363, allocations: 161.3 kB / 406.6 MB, free: 2.219 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001783/0.4365, allocations: 195.8 kB / 406.8 MB, free: 1.984 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006989/0.4372, allocations: 335 kB / 407.1 MB, free: 1.648 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.118e-05/0.4373, allocations: 29.7 kB / 407.1 MB, free: 1.613 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.4375, allocations: 128.3 kB / 407.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.801e-05/0.4376, allocations: 19.8 kB / 407.3 MB, free: 1.461 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.4377, allocations: 37.64 kB / 407.3 MB, free: 1.418 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002097/0.4379, allocations: 330.8 kB / 407.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.4381, allocations: 23.98 kB / 407.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002653/0.4384, allocations: 99.95 kB / 407.7 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003719/0.4388, allocations: 101 kB / 407.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.4388, allocations: 0 / 407.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005665/0.4394, allocations: 141.2 kB / 408 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/0.4394, allocations: 4 kB / 408 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.4395, allocations: 4 kB / 408 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.288e-05/0.4395, allocations: 0 / 408 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002476/0.4398, allocations: 23.98 kB / 408 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.4398, allocations: 12.14 kB / 408 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001851/0.44, allocations: 11.88 kB / 408 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.19e-05/0.44, allocations: 4 kB / 408 MB, free: 0.6172 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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,shiftSample1.y,hold1.y,hold1.u,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.0002798/0.4403, allocations: 162.3 kB / 408.2 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002102/0.4406, allocations: 77.38 kB / 408.3 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.4407, allocations: 29.7 kB / 408.3 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.4407, allocations: 0 / 408.3 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.4407, allocations: 4 kB / 408.3 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.738e-05/0.4408, allocations: 8 kB / 408.3 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004472/0.4412, allocations: 237.6 kB / 408.5 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.4413, allocations: 4 kB / 408.6 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001523/0.4414, allocations: 19.92 kB / 408.6 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/0.4415, allocations: 0 / 408.6 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.4415, allocations: 4 kB / 408.6 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.674e-06/0.4415, allocations: 3.984 kB / 408.6 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4415, allocations: 64 / 408.6 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000625/0.4422, allocations: 195.2 kB / 408.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002142/0.4424, allocations: 116.8 kB / 408.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.168e-05/0.4425, allocations: 3.984 kB / 408.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.4426, allocations: 8 kB / 408.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.694e-05/0.4428, allocations: 11.92 kB / 408.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.039e-05/0.4428, allocations: 12 kB / 408.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004693/0.4433, allocations: 237.9 kB / 409.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4433, allocations: 4 kB / 409.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005644/0.4439, allocations: 31.98 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,hold1.y,hold1.u,shiftSample1.y,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.002925/0.4469, allocations: 1.039 MB / 410.2 MB, free: 14.44 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005415/0.4475, allocations: 87.84 kB / 410.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.4475, allocations: 0 / 410.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002071/0.4477, allocations: 35.97 kB / 410.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008852/0.4486, allocations: 78.34 kB / 410.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005297/0.4539, allocations: 2.251 MB / 412.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005699/0.4546, allocations: 0.7515 MB / 413.4 MB, free: 11.08 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001997/0.4548, allocations: 21.55 kB / 413.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001889/0.455, allocations: 59.41 kB / 413.5 MB, free: 11 MB / 334.1 MB Notification: Performance of SimCode: time 1.232e-06/0.455, allocations: 4 kB / 413.5 MB, free: 11 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0663/0.5213, allocations: 5.465 MB / 419 MB, free: 5.668 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.9, allocations: 2.578 kB / 419 MB, free: 5.668 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches