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.001536/0.001536, allocations: 117.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001255, 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.495/1.495, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 63.89 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.368/0.3691, allocations: 50.54 MB / 409.2 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.004139/0.3733, allocations: 1.894 MB / 411.1 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002581/0.3759, allocations: 1.208 MB / 412.3 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.3761, allocations: 4 kB / 412.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000658/0.3768, allocations: 147.5 kB / 412.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003973/0.3772, allocations: 151.4 kB / 412.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000525/0.3777, allocations: 175.4 kB / 412.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003162/0.378, allocations: 195.4 kB / 413 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001333/0.3782, allocations: 37.52 kB / 413 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001197/0.3783, allocations: 75.7 kB / 413.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001217/0.3784, allocations: 71.69 kB / 413.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.33e-05/0.3785, allocations: 8 kB / 413.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001466/0.3786, allocations: 63.89 kB / 413.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.471e-05/0.3787, allocations: 39.84 kB / 413.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.285e-05/0.3788, allocations: 75.48 kB / 413.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003401/0.3792, allocations: 215 kB / 413.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3792, allocations: 0 / 413.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3792, allocations: 0 / 413.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.3792, allocations: 0 / 413.6 MB, free: 13.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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009293/0.3801, allocations: 0.5092 MB / 414.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.3802, allocations: 8.031 kB / 414.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.252e-05/0.3803, allocations: 24.75 kB / 414.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000377/0.3806, allocations: 278.8 kB / 414.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/0.3807, allocations: 8.312 kB / 414.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.21e-05/0.3807, allocations: 12.12 kB / 414.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003488/0.381, allocations: 150.5 kB / 414.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.3811, allocations: 0 / 414.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.674e-05/0.3811, allocations: 4 kB / 414.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.3811, allocations: 0 / 414.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001086/0.3812, allocations: 39.91 kB / 414.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005579/0.3818, allocations: 354.5 kB / 414.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00023/0.382, allocations: 103.9 kB / 415 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.564e-05/0.3821, allocations: 46.56 kB / 415.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.129e-05/0.3822, allocations: 7.938 kB / 415.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001885/0.3824, allocations: 79.33 kB / 415.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 2.023e-06/0.3824, allocations: 0 / 415.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004199/0.3828, allocations: 141.3 kB / 415.3 MB, free: 11.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.3829, allocations: 144.7 kB / 415.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003148/0.3832, allocations: 265 kB / 415.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.3833, allocations: 33.7 kB / 415.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.55e-05/0.3834, allocations: 116 kB / 415.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.432e-05/0.3834, allocations: 15.89 kB / 415.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.112e-05/0.3835, allocations: 29.62 kB / 415.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3836, allocations: 334.8 kB / 416.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.15e-05/0.3837, allocations: 24 kB / 416.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.624e-05/0.3838, allocations: 65.98 kB / 416.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001336/0.3839, allocations: 80.27 kB / 416.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3839, allocations: 0 / 416.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002056/0.3841, allocations: 117.6 kB / 416.5 MB, free: 10 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.3842, allocations: 11.94 kB / 416.5 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.3842, allocations: 0 / 416.5 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.3842, allocations: 4 kB / 416.5 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.791e-05/0.3843, allocations: 11.98 kB / 416.5 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.3843, allocations: 8.125 kB / 416.5 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.705e-05/0.3844, allocations: 15.81 kB / 416.6 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.3844, allocations: 4 kB / 416.6 MB, free: 9.945 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.0001435/0.3846, allocations: 145.8 kB / 416.7 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.653e-05/0.3847, allocations: 65.34 kB / 416.8 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.87e-05/0.3847, allocations: 25.7 kB / 416.8 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3847, allocations: 4 kB / 416.8 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3848, allocations: 4.062 kB / 416.8 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.3848, allocations: 3.938 kB / 416.8 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.385, allocations: 233.6 kB / 417 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.385, allocations: 0 / 417 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.669e-05/0.385, allocations: 8 kB / 417 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.385, allocations: 0 / 417 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.3851, allocations: 4 kB / 417 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3851, allocations: 0 / 417 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3851, allocations: 4 kB / 417.1 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002538/0.3853, allocations: 166.4 kB / 417.2 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.898e-05/0.3854, allocations: 104.8 kB / 417.3 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.901e-05/0.3855, allocations: 4 kB / 417.3 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.331e-05/0.3855, allocations: 11.98 kB / 417.3 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.962e-05/0.3856, allocations: 0 / 417.3 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.3856, allocations: 7.938 kB / 417.3 MB, free: 9.059 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001853/0.3858, allocations: 208.5 kB / 417.5 MB, free: 8.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.643e-06/0.3858, allocations: 0 / 417.5 MB, free: 8.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002584/0.3861, allocations: 31.92 kB / 417.6 MB, free: 8.824 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.001011/0.3871, allocations: 405.6 kB / 418 MB, free: 8.555 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002128/0.3873, allocations: 71.84 kB / 418 MB, free: 8.484 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3873, allocations: 0 / 418 MB, free: 8.484 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.024e-05/0.3874, allocations: 32.17 kB / 418.1 MB, free: 8.453 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003887/0.3878, allocations: 72.31 kB / 418.1 MB, free: 8.395 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005217/0.3883, allocations: 320.7 kB / 418.5 MB, free: 8.047 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002827/0.3886, allocations: 0.736 MB / 419.2 MB, free: 7.285 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.364e-05/0.3887, allocations: 17.55 kB / 419.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.762e-05/0.3887, allocations: 15.44 kB / 419.2 MB, free: 7.254 MB / 334.1 MB Notification: Performance of SimCode: time 1.733e-06/0.3887, allocations: 0 / 419.2 MB, free: 7.254 MB / 334.1 MB Notification: Performance of Templates: time 0.006031/0.3948, allocations: 2.492 MB / 421.7 MB, free: 4.781 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