Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.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.ClockSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_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.001744/0.001744, 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.002217/0.002217, allocations: 202 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.549/1.549, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 56.14 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3834/0.3851, allocations: 50.54 MB / 408.7 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.004288/0.3895, allocations: 1.565 MB / 410.3 MB, free: 156 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.3909, allocations: 0.5493 MB / 410.8 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.391, allocations: 3.938 kB / 410.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.442e-05/0.3911, allocations: 7.875 kB / 410.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001729/0.3913, allocations: 19.91 kB / 410.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004572/0.3918, allocations: 55.77 kB / 410.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001471/0.3919, allocations: 51.78 kB / 411 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.3921, allocations: 12.19 kB / 411 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001554/0.3922, allocations: 27.91 kB / 411 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.073e-05/0.3923, allocations: 19.86 kB / 411 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.117e-05/0.3923, allocations: 4 kB / 411 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.536e-05/0.3924, allocations: 15.94 kB / 411.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.015e-05/0.3925, allocations: 15.92 kB / 411.1 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.76e-05/0.3925, allocations: 27.8 kB / 411.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002064/0.3928, allocations: 63.73 kB / 411.2 MB, free: 15.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3928, allocations: 0 / 411.2 MB, free: 15.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3928, allocations: 0 / 411.2 MB, free: 15.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.3928, allocations: 4 kB / 411.2 MB, free: 15.27 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006542/0.3935, allocations: 380.7 kB / 411.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.3935, allocations: 12.03 kB / 411.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.041e-05/0.3936, allocations: 34.75 kB / 411.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002065/0.3938, allocations: 16.83 kB / 411.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004331/0.3942, allocations: 204.2 kB / 411.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.3943, allocations: 12.06 kB / 411.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.3943, allocations: 4 kB / 411.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003695/0.3947, allocations: 113 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.3947, allocations: 0 / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.3947, allocations: 0 / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.3947, allocations: 0 / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001015/0.3948, allocations: 19.98 kB / 412 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004149/0.3953, allocations: 269.7 kB / 412.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001206/0.3954, allocations: 45.2 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.076e-05/0.3955, allocations: 13.78 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.857e-05/0.3955, allocations: 3.984 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.742e-05/0.3956, allocations: 42.5 kB / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.322e-06/0.3956, allocations: 4 kB / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.000323/0.3959, allocations: 69.52 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.935e-05/0.396, allocations: 81.11 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001623/0.3962, allocations: 149.7 kB / 412.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.3962, allocations: 25.7 kB / 412.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.939e-05/0.3963, allocations: 92.38 kB / 412.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.733e-05/0.3963, allocations: 4 kB / 412.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.164e-05/0.3964, allocations: 21.61 kB / 412.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.3965, allocations: 318.8 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.538e-05/0.3966, allocations: 7.984 kB / 413.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.529e-05/0.3966, allocations: 25.59 kB / 413.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000125/0.3968, allocations: 37.7 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3968, allocations: 0 / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001633/0.397, allocations: 53.67 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.397, allocations: 8 kB / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.397, allocations: 0 / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.397, allocations: 0 / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.698e-05/0.3971, allocations: 4 kB / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.3971, allocations: 7.875 kB / 413.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.212e-05/0.3972, allocations: 8.062 kB / 413.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.3972, allocations: 3.984 kB / 413.2 MB, free: 12.95 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001645/0.3974, allocations: 121.7 kB / 413.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.518e-05/0.3975, allocations: 37.61 kB / 413.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.325e-05/0.3975, allocations: 15.86 kB / 413.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.3976, allocations: 0 / 413.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.3976, allocations: 3.938 kB / 413.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.3976, allocations: 4 kB / 413.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002483/0.3978, allocations: 169.7 kB / 413.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3979, allocations: 0 / 413.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.714e-05/0.3979, allocations: 4 kB / 413.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.184e-06/0.3979, allocations: 4 kB / 413.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.398, allocations: 3.984 kB / 413.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.398, allocations: 0 / 413.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/0.398, allocations: 7.875 kB / 413.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002301/0.3982, allocations: 156.3 kB / 413.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.438e-05/0.3983, allocations: 93 kB / 413.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.3983, allocations: 0 / 413.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.784e-05/0.3985, allocations: 7.984 kB / 413.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.493e-05/0.3985, allocations: 3.938 kB / 413.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.3985, allocations: 0 / 413.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000104/0.3986, allocations: 114.6 kB / 413.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3986, allocations: 0 / 413.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003141/0.3989, allocations: 8 kB / 414 MB, free: 12.1 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0005742/0.3995, allocations: 0.6937 MB / 414.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001651/0.3997, allocations: 20.02 kB / 414.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.3997, allocations: 0 / 414.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.958e-05/0.3998, allocations: 19.88 kB / 414.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004473/0.4002, allocations: 30.12 kB / 414.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.402, allocations: 1.332 MB / 416.1 MB, free: 9.891 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003476/0.4024, allocations: 0.6885 MB / 416.7 MB, free: 9.176 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.641e-05/0.4025, allocations: 3.938 kB / 416.7 MB, free: 9.172 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.916e-05/0.4025, allocations: 19.42 kB / 416.8 MB, free: 9.152 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4025, allocations: 0 / 416.8 MB, free: 9.152 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02404/0.4266, allocations: 1.654 MB / 418.4 MB, free: 7.613 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.203/8.63, allocations: 8.062 kB / 418.4 MB, free: 7.605 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches