Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001239/0.001239, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001272/0.001272, allocations: 204.6 kB / 18.74 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001707/0.001707, allocations: 59.91 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2971, allocations: 50.55 MB / 408.8 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003332/0.3005, allocations: 1.894 MB / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002232/0.3028, allocations: 1.286 MB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.3029, allocations: 7.938 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000327/0.3033, allocations: 63.67 kB / 412.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003879/0.3037, allocations: 147.4 kB / 412.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006688/0.3044, allocations: 218.8 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002635/0.3046, allocations: 179.5 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.3048, allocations: 29.55 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.3049, allocations: 79.62 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.305, allocations: 79.67 kB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.889e-05/0.3051, allocations: 12 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001762/0.3053, allocations: 63.97 kB / 412.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.857e-05/0.3054, allocations: 59.69 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.996e-05/0.3055, allocations: 75.48 kB / 413 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003799/0.3059, allocations: 238 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.3059, allocations: 0 / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3059, allocations: 0 / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.3059, allocations: 4 kB / 413.2 MB, free: 13.05 MB / 334.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.0007787/0.3067, allocations: 0.5503 MB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.3067, allocations: 8.031 kB / 413.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.928e-05/0.3068, allocations: 42.73 kB / 413.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.561e-05/0.3068, allocations: 24.8 kB / 413.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00045/0.3073, allocations: 283.8 kB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.376e-05/0.3073, allocations: 12.38 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.029e-05/0.3074, allocations: 7.938 kB / 414.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003477/0.3077, allocations: 155.5 kB / 414.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.3078, allocations: 0 / 414.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.3078, allocations: 4 kB / 414.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.3078, allocations: 11.98 kB / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001284/0.3079, allocations: 27.98 kB / 414.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005377/0.3085, allocations: 394.2 kB / 414.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002634/0.3087, allocations: 119.9 kB / 414.8 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.3089, allocations: 50.56 kB / 414.9 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.3089, allocations: 8 kB / 414.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001747/0.3091, allocations: 83.31 kB / 415 MB, free: 11.06 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.3091, allocations: 0 / 415 MB, free: 11.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003877/0.3095, allocations: 153.5 kB / 415.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.3096, allocations: 158.2 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003947/0.31, allocations: 342.9 kB / 415.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.31, allocations: 33.7 kB / 415.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.3101, allocations: 128.1 kB / 415.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.399e-05/0.3102, allocations: 19.89 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.512e-05/0.3102, allocations: 29.72 kB / 415.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.3104, allocations: 330.8 kB / 416.1 MB, free: 9.809 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.163e-05/0.3105, allocations: 23.98 kB / 416.2 MB, free: 9.785 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.3106, allocations: 90.84 kB / 416.3 MB, free: 9.672 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001573/0.3108, allocations: 80.22 kB / 416.3 MB, free: 9.578 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3108, allocations: 0 / 416.3 MB, free: 9.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002471/0.3111, allocations: 129.4 kB / 416.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.3111, allocations: 4 kB / 416.5 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.3111, allocations: 0 / 416.5 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.3111, allocations: 4 kB / 416.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/0.3112, allocations: 15.98 kB / 416.5 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.3112, allocations: 4 kB / 416.5 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.724e-05/0.3113, allocations: 15.88 kB / 416.5 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.3113, allocations: 11.92 kB / 416.5 MB, free: 9.391 MB / 334.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.0001792/0.3115, allocations: 154.3 kB / 416.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.872e-05/0.3116, allocations: 73.44 kB / 416.7 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.584e-05/0.3117, allocations: 29.64 kB / 416.8 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3117, allocations: 4 kB / 416.8 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.892e-06/0.3117, allocations: 4 kB / 416.8 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.3117, allocations: 3.938 kB / 416.8 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002296/0.312, allocations: 237.6 kB / 417 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.312, allocations: 0 / 417 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.446e-05/0.3121, allocations: 20.05 kB / 417 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3121, allocations: 0 / 417 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.3121, allocations: 4.047 kB / 417 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.3121, allocations: 3.984 kB / 417 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.3121, allocations: 7.984 kB / 417 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002848/0.3124, allocations: 170.5 kB / 417.2 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.3125, allocations: 116.9 kB / 417.3 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.224e-05/0.3125, allocations: 4 kB / 417.3 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.364e-05/0.3126, allocations: 4 kB / 417.3 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.238e-05/0.3127, allocations: 15.92 kB / 417.4 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.3127, allocations: 4 kB / 417.4 MB, free: 8.441 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002622/0.313, allocations: 245.9 kB / 417.6 MB, free: 8.203 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.313, allocations: 0 / 417.6 MB, free: 8.203 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002647/0.3132, allocations: 35.94 kB / 417.6 MB, free: 8.168 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.001993/0.3152, allocations: 1.019 MB / 418.7 MB, free: 7.258 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002416/0.3155, allocations: 80.03 kB / 418.7 MB, free: 7.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.3155, allocations: 4 kB / 418.7 MB, free: 7.176 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.139e-05/0.3156, allocations: 31.92 kB / 418.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004039/0.316, allocations: 74.28 kB / 418.8 MB, free: 7.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002693/0.3187, allocations: 2.213 MB / 421 MB, free: 4.734 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005595/0.3193, allocations: 0.7475 MB / 421.8 MB, free: 3.961 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001297/0.3194, allocations: 21.55 kB / 421.8 MB, free: 3.941 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001339/0.3196, allocations: 59.42 kB / 421.9 MB, free: 3.883 MB / 334.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3196, allocations: 0 / 421.9 MB, free: 3.883 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02772/0.3473, allocations: 5.365 MB / 427.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.173/8.52, allocations: 4.062 kB / 427.2 MB, free: 14.65 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches