Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001429/0.001429, allocations: 118.8 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001625/0.001625, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.577/1.577, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 59.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.382/0.3833, allocations: 50.54 MB / 409.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003282/0.3867, allocations: 1.902 MB / 411.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002077/0.3888, allocations: 1.204 MB / 412.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001476/0.3889, allocations: 7.938 kB / 412.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006495/0.3896, allocations: 151.5 kB / 412.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004321/0.3901, allocations: 159 kB / 412.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005425/0.3906, allocations: 163.5 kB / 412.8 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002845/0.3909, allocations: 191.5 kB / 413 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.3911, allocations: 33.55 kB / 413 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.3912, allocations: 87.56 kB / 413.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.3913, allocations: 67.7 kB / 413.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.443e-05/0.3914, allocations: 11.98 kB / 413.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000139/0.3915, allocations: 55.97 kB / 413.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.351e-05/0.3916, allocations: 43.78 kB / 413.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.978e-05/0.3917, allocations: 75.47 kB / 413.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00034/0.392, allocations: 207 kB / 413.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.3921, allocations: 0 / 413.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3921, allocations: 0 / 413.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.3921, allocations: 3.984 kB / 413.6 MB, free: 13.24 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.0009379/0.393, allocations: 0.5209 MB / 414.1 MB, free: 12.67 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.3931, allocations: 8.031 kB / 414.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.002e-05/0.3932, allocations: 20.75 kB / 414.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003784/0.3935, allocations: 270.8 kB / 414.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.3936, allocations: 4.375 kB / 414.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.438e-05/0.3936, allocations: 12.12 kB / 414.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000373/0.394, allocations: 146.7 kB / 414.5 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.394, allocations: 3.938 kB / 414.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.394, allocations: 3.938 kB / 414.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.3941, allocations: 0 / 414.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001164/0.3942, allocations: 39.97 kB / 414.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005788/0.3948, allocations: 354.4 kB / 414.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002545/0.395, allocations: 111.9 kB / 415 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.821e-05/0.3951, allocations: 46.56 kB / 415.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.201e-05/0.3952, allocations: 4 kB / 415.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.3954, allocations: 83.33 kB / 415.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.823e-06/0.3954, allocations: 0 / 415.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004279/0.3958, allocations: 141.3 kB / 415.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.3959, allocations: 140.4 kB / 415.5 MB, free: 11.1 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000322/0.3963, allocations: 273 kB / 415.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.3963, allocations: 25.7 kB / 415.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.3964, allocations: 120.4 kB / 415.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.009e-05/0.3964, allocations: 23.88 kB / 415.9 MB, free: 10.65 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.511e-05/0.3965, allocations: 25.62 kB / 415.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.3967, allocations: 334.8 kB / 416.2 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.749e-05/0.3968, allocations: 23.94 kB / 416.3 MB, free: 10.26 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.3969, allocations: 65.98 kB / 416.3 MB, free: 10.17 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001339/0.397, allocations: 80.27 kB / 416.4 MB, free: 10.08 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.397, allocations: 0 / 416.4 MB, free: 10.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002091/0.3972, allocations: 117.5 kB / 416.5 MB, free: 9.957 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.3973, allocations: 8 kB / 416.5 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3973, allocations: 0 / 416.5 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.3973, allocations: 4 kB / 416.5 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.061e-05/0.3974, allocations: 11.98 kB / 416.5 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.908e-06/0.3974, allocations: 4 kB / 416.5 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.149e-05/0.3975, allocations: 11.88 kB / 416.6 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.3975, allocations: 8 kB / 416.6 MB, free: 9.91 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,sample1.u,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.000138/0.3977, allocations: 149.7 kB / 416.7 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-05/0.3978, allocations: 65.44 kB / 416.8 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.921e-05/0.3978, allocations: 22.02 kB / 416.8 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.237e-06/0.3978, allocations: 4 kB / 416.8 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3978, allocations: 0 / 416.8 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.3979, allocations: 7.938 kB / 416.8 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002122/0.3981, allocations: 225.6 kB / 417 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.3981, allocations: 3.984 kB / 417 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.608e-05/0.3981, allocations: 7.938 kB / 417 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.3981, allocations: 4 kB / 417 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.3982, allocations: 8 kB / 417.1 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3982, allocations: 0 / 417.1 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3982, allocations: 4 kB / 417.1 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002609/0.3984, allocations: 162.3 kB / 417.2 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.764e-05/0.3985, allocations: 104.8 kB / 417.3 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.101e-05/0.3986, allocations: 8 kB / 417.3 MB, free: 9.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.121e-05/0.3986, allocations: 11.98 kB / 417.3 MB, free: 9.027 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.924e-05/0.3987, allocations: 4 kB / 417.3 MB, free: 9.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.3987, allocations: 3.938 kB / 417.3 MB, free: 9.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000192/0.3989, allocations: 204.5 kB / 417.5 MB, free: 8.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3989, allocations: 0 / 417.5 MB, free: 8.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002608/0.3992, allocations: 27.98 kB / 417.6 MB, free: 8.793 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,sample1.u,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.0011/0.4003, allocations: 414 kB / 418 MB, free: 8.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002451/0.4006, allocations: 67.91 kB / 418 MB, free: 8.453 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4006, allocations: 0 / 418 MB, free: 8.453 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.654e-05/0.4007, allocations: 27.98 kB / 418.1 MB, free: 8.426 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004363/0.4011, allocations: 73.5 kB / 418.1 MB, free: 8.359 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006514/0.4018, allocations: 325 kB / 418.5 MB, free: 8.008 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003741/0.4022, allocations: 0.7319 MB / 419.2 MB, free: 7.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.707e-05/0.4022, allocations: 17.55 kB / 419.2 MB, free: 7.234 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.618e-05/0.4023, allocations: 19.44 kB / 419.2 MB, free: 7.215 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4023, allocations: 0 / 419.2 MB, free: 7.215 MB / 334.1 MB Notification: Performance of Templates: time 0.006984/0.4093, allocations: 2.49 MB / 421.7 MB, free: 4.746 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches