Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 107.9 kB / 17.74 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001334/0.001335, allocations: 179.1 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001017/0.001017, allocations: 47.92 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2339, allocations: 49.43 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003064/0.237, allocations: 1.89 MB / 403.3 MB, free: 7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001614/0.2387, allocations: 1.06 MB / 404.3 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.2388, allocations: 4 kB / 404.3 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005882/0.2394, allocations: 151.5 kB / 404.5 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003053/0.2397, allocations: 111.6 kB / 404.6 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005586/0.2403, allocations: 201.6 kB / 404.8 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002586/0.2405, allocations: 183.5 kB / 405 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.2407, allocations: 33.53 kB / 405 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001398/0.2408, allocations: 75.64 kB / 405.1 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/0.2409, allocations: 75.62 kB / 405.2 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.897e-05/0.241, allocations: 8 kB / 405.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000149/0.2411, allocations: 55.95 kB / 405.2 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.661e-05/0.2412, allocations: 39.84 kB / 405.3 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.698e-05/0.2413, allocations: 75.48 kB / 405.3 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002885/0.2416, allocations: 208.4 kB / 405.5 MB, free: 4.742 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2416, allocations: 4 kB / 405.5 MB, free: 4.738 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2416, allocations: 0 / 405.5 MB, free: 4.738 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.2416, allocations: 0 / 405.5 MB, free: 4.738 MB / 318.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.0007348/0.2424, allocations: 0.4962 MB / 406 MB, free: 4.188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.2424, allocations: 11.89 kB / 406.1 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.762e-05/0.2425, allocations: 32.59 kB / 406.1 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003297/0.2428, allocations: 262.8 kB / 406.3 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.2429, allocations: 8.375 kB / 406.3 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.962e-05/0.2429, allocations: 8.125 kB / 406.4 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003148/0.2432, allocations: 145.5 kB / 406.5 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.2432, allocations: 4 kB / 406.5 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.2432, allocations: 8 kB / 406.5 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.2433, allocations: 0 / 406.5 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000103/0.2434, allocations: 31.92 kB / 406.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004646/0.2438, allocations: 362.3 kB / 406.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000225/0.2441, allocations: 111.9 kB / 407 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.563e-05/0.2442, allocations: 42.56 kB / 407 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.2442, allocations: 0 / 407 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001562/0.2443, allocations: 83.28 kB / 407.1 MB, free: 2.934 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.643e-06/0.2444, allocations: 0 / 407.1 MB, free: 2.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003708/0.2447, allocations: 145.3 kB / 407.3 MB, free: 2.785 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.652e-05/0.2448, allocations: 132.5 kB / 407.4 MB, free: 2.625 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002586/0.2451, allocations: 261 kB / 407.7 MB, free: 2.355 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.2451, allocations: 29.95 kB / 407.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.381e-05/0.2452, allocations: 120 kB / 407.8 MB, free: 2.199 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.346e-05/0.2452, allocations: 15.89 kB / 407.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.617e-05/0.2453, allocations: 29.62 kB / 407.8 MB, free: 2.148 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.2454, allocations: 330.8 kB / 408.2 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.234e-05/0.2455, allocations: 23.92 kB / 408.2 MB, free: 1.793 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.988e-05/0.2456, allocations: 77.94 kB / 408.3 MB, free: 1.695 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.2457, allocations: 72.22 kB / 408.3 MB, free: 1.609 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2457, allocations: 0 / 408.3 MB, free: 1.609 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002056/0.2459, allocations: 117.5 kB / 408.5 MB, free: 1.488 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.246, allocations: 4 kB / 408.5 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.246, allocations: 0 / 408.5 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.246, allocations: 4 kB / 408.5 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.986e-05/0.2461, allocations: 15.92 kB / 408.5 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.2461, allocations: 4 kB / 408.5 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.783e-05/0.2462, allocations: 11.88 kB / 408.5 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.2462, allocations: 8 kB / 408.5 MB, free: 1.441 MB / 318.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.000115/0.2463, allocations: 146 kB / 408.6 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.815e-05/0.2464, allocations: 65.34 kB / 408.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.871e-05/0.2465, allocations: 21.7 kB / 408.7 MB, free: 1.195 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2465, allocations: 4 kB / 408.7 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2465, allocations: 0 / 408.7 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2465, allocations: 7.875 kB / 408.7 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001795/0.2467, allocations: 217.7 kB / 409 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.2467, allocations: 4 kB / 409 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.039e-05/0.2467, allocations: 12.31 kB / 409 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.2467, allocations: 4 kB / 409 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.2467, allocations: 11.98 kB / 409 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.2468, allocations: 0 / 409 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2468, allocations: 0 / 409 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002358/0.247, allocations: 158.5 kB / 409.1 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.028e-05/0.2471, allocations: 116.8 kB / 409.3 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.75e-05/0.2471, allocations: 0 / 409.3 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.234e-05/0.2472, allocations: 8 kB / 409.3 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.937e-05/0.2472, allocations: 7.984 kB / 409.3 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.2473, allocations: 7.938 kB / 409.3 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001775/0.2474, allocations: 196.4 kB / 409.5 MB, free: 372 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2475, allocations: 4 kB / 409.5 MB, free: 368 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002569/0.2477, allocations: 31.91 kB / 409.5 MB, free: 336 kB / 318.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.0009239/0.2486, allocations: 421.1 kB / 409.9 MB, free: 76 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002139/0.2489, allocations: 71.84 kB / 410 MB, free: 4 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2489, allocations: 0 / 410 MB, free: 4 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.679e-05/0.249, allocations: 23.98 kB / 410 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003886/0.2494, allocations: 60.41 kB / 410.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005232/0.2499, allocations: 331.2 kB / 410.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002893/0.2502, allocations: 0.7357 MB / 411.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.537e-05/0.2503, allocations: 15.44 kB / 411.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2503, allocations: 0 / 411.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of Templates: time 0.004691/0.255, allocations: 2.637 MB / 413.8 MB, free: 12.16 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches