Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001747/0.001747, allocations: 111.6 kB / 17.06 MB, free: 5.812 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.002129/0.002129, allocations: 200 kB / 18 MB, free: 4.949 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.678/2.678, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 47.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4165/0.4184, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004355/0.4228, allocations: 1.868 MB / 402.1 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002388/0.4253, allocations: 1.145 MB / 403.2 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002141/0.4255, allocations: 0 / 403.2 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004308/0.426, allocations: 63.66 kB / 403.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004835/0.4265, allocations: 91.59 kB / 403.4 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001177/0.4277, allocations: 264.1 kB / 403.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004051/0.4281, allocations: 167.5 kB / 403.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.4283, allocations: 29.55 kB / 403.9 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001977/0.4285, allocations: 79.62 kB / 403.9 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002061/0.4287, allocations: 79.62 kB / 404 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.454e-05/0.4288, allocations: 8 kB / 404 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000243/0.429, allocations: 67.95 kB / 404.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.4292, allocations: 51.83 kB / 404.1 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.4293, allocations: 79.42 kB / 404.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005545/0.4299, allocations: 236.9 kB / 404.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.4299, allocations: 0 / 404.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4299, allocations: 0 / 404.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.602e-05/0.4299, allocations: 0 / 404.4 MB, free: 4.582 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001118/0.4311, allocations: 0.535 MB / 405 MB, free: 3.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.659e-05/0.4311, allocations: 12.03 kB / 405 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.319e-05/0.4312, allocations: 38.73 kB / 405 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.996e-05/0.4313, allocations: 24.66 kB / 405 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006301/0.4319, allocations: 283.6 kB / 405.3 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.432, allocations: 4.375 kB / 405.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.958e-05/0.432, allocations: 11.94 kB / 405.3 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004916/0.4325, allocations: 159.5 kB / 405.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.4325, allocations: 0 / 405.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.653e-05/0.4326, allocations: 0 / 405.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.4326, allocations: 4 kB / 405.5 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.4328, allocations: 31.97 kB / 405.5 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007912/0.4336, allocations: 386.4 kB / 405.9 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003515/0.4339, allocations: 119.9 kB / 406 MB, free: 2.781 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.4341, allocations: 46.56 kB / 406.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.554e-05/0.4341, allocations: 0 / 406.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002574/0.4344, allocations: 83.38 kB / 406.2 MB, free: 2.633 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 2.155e-06/0.4344, allocations: 4 kB / 406.2 MB, free: 2.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005678/0.435, allocations: 153.3 kB / 406.3 MB, free: 2.473 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.4351, allocations: 158.2 kB / 406.5 MB, free: 2.281 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005397/0.4357, allocations: 330.6 kB / 406.8 MB, free: 1.949 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.518e-05/0.4357, allocations: 29.64 kB / 406.8 MB, free: 1.914 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001649/0.4359, allocations: 136 kB / 406.9 MB, free: 1.777 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.081e-05/0.436, allocations: 20 kB / 407 MB, free: 1.758 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.4361, allocations: 33.7 kB / 407 MB, free: 1.719 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.4363, allocations: 330.8 kB / 407.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.4364, allocations: 23.98 kB / 407.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001594/0.4366, allocations: 86.83 kB / 407.4 MB, free: 1.254 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000237/0.4368, allocations: 84.22 kB / 407.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.4368, allocations: 0 / 407.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003639/0.4372, allocations: 121.5 kB / 407.6 MB, free: 1.031 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.4372, allocations: 8.031 kB / 407.6 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.4373, allocations: 4 kB / 407.6 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.741e-05/0.4373, allocations: 7.922 kB / 407.7 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001664/0.4375, allocations: 20 kB / 407.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.4375, allocations: 0 / 407.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.4376, allocations: 15.83 kB / 407.7 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.663e-05/0.4377, allocations: 4 kB / 407.7 MB, free: 0.9727 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,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 (11): * Single equations (assignments): 11 * 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.0002497/0.4379, allocations: 154.1 kB / 407.8 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001496/0.4381, allocations: 77.34 kB / 407.9 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.4382, allocations: 29.7 kB / 407.9 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.4382, allocations: 0 / 407.9 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.4382, allocations: 0 / 407.9 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.54e-05/0.4383, allocations: 7.938 kB / 408 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003799/0.4387, allocations: 233.5 kB / 408.2 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.4387, allocations: 4 kB / 408.2 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.153e-05/0.4388, allocations: 11.98 kB / 408.2 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.4388, allocations: 0 / 408.2 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.403e-05/0.4388, allocations: 4 kB / 408.2 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.4388, allocations: 8 kB / 408.2 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.4388, allocations: 0 / 408.2 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004122/0.4393, allocations: 170.4 kB / 408.4 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000178/0.4395, allocations: 112.9 kB / 408.5 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.684e-05/0.4395, allocations: 4 kB / 408.5 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.231e-05/0.4396, allocations: 4 kB / 408.5 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.857e-05/0.4397, allocations: 15.92 kB / 408.5 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.4397, allocations: 4 kB / 408.5 MB, free: 40 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003811/0.4401, allocations: 241.9 kB / 408.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.81e-07/0.4401, allocations: 0 / 408.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004255/0.4406, allocations: 39.98 kB / 408.8 MB, free: 15.76 MB / 334.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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,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 (9): * Single equations (assignments): 7 * 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.002046/0.4426, allocations: 1.021 MB / 409.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003299/0.443, allocations: 67.91 kB / 409.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.443, allocations: 0 / 409.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.4431, allocations: 28.23 kB / 409.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005648/0.4437, allocations: 76.31 kB / 410 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003781/0.4475, allocations: 2.194 MB / 412.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004399/0.448, allocations: 0.7397 MB / 412.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001539/0.4482, allocations: 25.78 kB / 412.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.4483, allocations: 59.41 kB / 413 MB, free: 11.54 MB / 334.1 MB Notification: Performance of SimCode: time 1.243e-06/0.4483, allocations: 0 / 413 MB, free: 11.54 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03454/0.4829, allocations: 5.332 MB / 418.3 MB, free: 6.363 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.104/9.587, allocations: 8.547 kB / 418.3 MB, free: 6.355 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches