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.001145/0.001145, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001239/0.001239, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 63.83 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3011, allocations: 50.54 MB / 408.7 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003798/0.305, allocations: 1.894 MB / 410.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00247/0.3075, allocations: 1.282 MB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001968/0.3077, allocations: 4 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003725/0.3081, allocations: 71.66 kB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000481/0.3086, allocations: 131.4 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008254/0.3094, allocations: 226.9 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003524/0.3098, allocations: 179.5 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.31, allocations: 33.53 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001973/0.3102, allocations: 75.7 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001654/0.3104, allocations: 79.62 kB / 412.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.078e-05/0.3104, allocations: 8 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002123/0.3106, allocations: 71.94 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.545e-05/0.3107, allocations: 47.84 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.373e-05/0.3108, allocations: 83.41 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004671/0.3113, allocations: 248.8 kB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3113, allocations: 0 / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3113, allocations: 0 / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.3113, allocations: 0 / 413.1 MB, free: 13.15 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.0009267/0.3123, allocations: 0.535 MB / 413.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.3123, allocations: 12.03 kB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.538e-05/0.3124, allocations: 42.67 kB / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.25e-05/0.3125, allocations: 28.66 kB / 413.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005298/0.313, allocations: 291.5 kB / 414.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.313, allocations: 4.375 kB / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.128e-05/0.3131, allocations: 11.94 kB / 414.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003646/0.3134, allocations: 155.6 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.3135, allocations: 0 / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.65e-05/0.3135, allocations: 11.98 kB / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.3135, allocations: 4 kB / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001329/0.3136, allocations: 39.91 kB / 414.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005996/0.3142, allocations: 378.4 kB / 414.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002582/0.3145, allocations: 115.9 kB / 414.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.528e-05/0.3146, allocations: 42.56 kB / 414.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.267e-05/0.3146, allocations: 11.98 kB / 414.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001807/0.3148, allocations: 79.27 kB / 414.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 2.034e-06/0.3148, allocations: 0 / 414.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004066/0.3153, allocations: 157.3 kB / 415 MB, free: 11.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.3154, allocations: 158.2 kB / 415.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003667/0.3157, allocations: 346.5 kB / 415.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.3158, allocations: 29.95 kB / 415.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.155e-05/0.3159, allocations: 128.1 kB / 415.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.437e-05/0.3159, allocations: 19.73 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.705e-05/0.316, allocations: 25.72 kB / 415.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3161, allocations: 338.8 kB / 416.1 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.04e-05/0.3162, allocations: 19.98 kB / 416.1 MB, free: 9.902 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001217/0.3163, allocations: 94.84 kB / 416.2 MB, free: 9.785 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.3165, allocations: 80.22 kB / 416.3 MB, free: 9.691 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3165, allocations: 0 / 416.3 MB, free: 9.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002418/0.3167, allocations: 137.6 kB / 416.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.3167, allocations: 4 kB / 416.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.3168, allocations: 4 kB / 416.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.3168, allocations: 0 / 416.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.3169, allocations: 19.98 kB / 416.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.3169, allocations: 0 / 416.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.825e-05/0.317, allocations: 7.938 kB / 416.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/0.317, allocations: 8 kB / 416.4 MB, free: 9.508 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.0001465/0.3172, allocations: 165.8 kB / 416.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.705e-05/0.3173, allocations: 61.42 kB / 416.7 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.473e-05/0.3174, allocations: 29.7 kB / 416.7 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.3174, allocations: 3.938 kB / 416.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.3174, allocations: 4 kB / 416.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.3174, allocations: 7.922 kB / 416.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002114/0.3176, allocations: 241.5 kB / 416.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.3176, allocations: 0 / 416.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.004e-05/0.3177, allocations: 23.98 kB / 417 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.3177, allocations: 0 / 417 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.3177, allocations: 4 kB / 417 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.77e-06/0.3177, allocations: 4 kB / 417 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3177, allocations: 0 / 417 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002728/0.318, allocations: 166.4 kB / 417.1 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.3181, allocations: 116.8 kB / 417.2 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.3182, allocations: 4 kB / 417.2 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.324e-05/0.3182, allocations: 4 kB / 417.2 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.56e-05/0.3183, allocations: 15.92 kB / 417.3 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.3183, allocations: 4 kB / 417.3 MB, free: 8.559 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002394/0.3186, allocations: 249.9 kB / 417.5 MB, free: 8.316 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3186, allocations: 0 / 417.5 MB, free: 8.316 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002673/0.3189, allocations: 28 kB / 417.5 MB, free: 8.289 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.001368/0.3202, allocations: 1.022 MB / 418.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002274/0.3205, allocations: 76.03 kB / 418.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3205, allocations: 8 kB / 418.6 MB, free: 7.293 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.494e-05/0.3206, allocations: 27.98 kB / 418.7 MB, free: 7.266 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004245/0.321, allocations: 78.05 kB / 418.7 MB, free: 7.184 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002735/0.3238, allocations: 2.213 MB / 421 MB, free: 4.848 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.3242, allocations: 0.7436 MB / 421.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.3243, allocations: 25.53 kB / 421.7 MB, free: 4.055 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.3244, allocations: 59.42 kB / 421.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3244, allocations: 0 / 421.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02612/0.3505, allocations: 5.432 MB / 427.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.661/8.011, allocations: 0 / 427.2 MB, free: 14.7 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.0.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