Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001011/0.001012, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007737/0.0007737, allocations: 106.6 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002465/0.0002466, allocations: 11.94 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2342, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.001861/0.2361, allocations: 1.575 MB / 409.1 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001432/0.2376, allocations: 1.195 MB / 410.3 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.2377, allocations: 5.469 kB / 410.3 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000278/0.238, allocations: 51.8 kB / 410.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002534/0.2382, allocations: 117.8 kB / 410.4 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005559/0.2388, allocations: 210.1 kB / 410.6 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001731/0.239, allocations: 151.5 kB / 410.8 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.2391, allocations: 34.28 kB / 410.8 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.164e-05/0.2392, allocations: 63.7 kB / 410.9 MB, free: 24.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.17e-05/0.2393, allocations: 64.75 kB / 411 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.894e-05/0.2393, allocations: 0 / 411 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001228/0.2394, allocations: 51.91 kB / 411 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.939e-05/0.2395, allocations: 51.19 kB / 411.1 MB, free: 24.26 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.53e-05/0.2396, allocations: 53.58 kB / 411.1 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001878/0.2398, allocations: 176.6 kB / 411.3 MB, free: 24.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.2398, allocations: 7.938 kB / 411.3 MB, free: 24.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2398, allocations: 0 / 411.3 MB, free: 24.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.2398, allocations: 0 / 411.3 MB, free: 24.02 MB / 298.7 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.0005892/0.2404, allocations: 0.5038 MB / 411.8 MB, free: 23.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.2404, allocations: 10.03 kB / 411.8 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.963e-05/0.2405, allocations: 23.72 kB / 411.8 MB, free: 23.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000276/0.2408, allocations: 278.4 kB / 412.1 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.2408, allocations: 4 kB / 412.1 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.2408, allocations: 8 kB / 412.1 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.2411, allocations: 163 kB / 412.3 MB, free: 22.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.2411, allocations: 0 / 412.3 MB, free: 22.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.2411, allocations: 4 kB / 412.3 MB, free: 22.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.2412, allocations: 0 / 412.3 MB, free: 22.92 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001028/0.2413, allocations: 43.91 kB / 412.3 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004107/0.2417, allocations: 386.4 kB / 412.7 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001981/0.2419, allocations: 119.8 kB / 412.8 MB, free: 22.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.146e-05/0.242, allocations: 46.5 kB / 412.9 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.242, allocations: 7.984 kB / 412.9 MB, free: 22.24 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001792/0.2422, allocations: 75.39 kB / 412.9 MB, free: 22.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.573e-06/0.2422, allocations: 0 / 412.9 MB, free: 22.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.000328/0.2425, allocations: 149.3 kB / 413.1 MB, free: 22 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.298e-05/0.2426, allocations: 162.2 kB / 413.2 MB, free: 21.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/0.2429, allocations: 338.6 kB / 413.6 MB, free: 21.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.2429, allocations: 33.95 kB / 413.6 MB, free: 21.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.126e-05/0.243, allocations: 124.1 kB / 413.7 MB, free: 21.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.022e-05/0.243, allocations: 19.73 kB / 413.7 MB, free: 21.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.422e-06/0.243, allocations: 8 kB / 413.7 MB, free: 21.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.778e-05/0.2431, allocations: 330.8 kB / 414.1 MB, free: 20.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.986e-05/0.2431, allocations: 23.98 kB / 414.1 MB, free: 20.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.233e-05/0.2432, allocations: 90.78 kB / 414.2 MB, free: 20.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.898e-05/0.2433, allocations: 27.98 kB / 414.2 MB, free: 20.78 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2433, allocations: 0 / 414.2 MB, free: 20.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002166/0.2435, allocations: 129.4 kB / 414.3 MB, free: 20.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.2436, allocations: 8 kB / 414.3 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2436, allocations: 4 kB / 414.3 MB, free: 20.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.2436, allocations: 0 / 414.3 MB, free: 20.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.2437, allocations: 19.98 kB / 414.4 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.2437, allocations: 0 / 414.4 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.168e-05/0.2438, allocations: 4 kB / 414.4 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.408e-06/0.2438, allocations: 4 kB / 414.4 MB, free: 20.61 MB / 298.7 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.2439, allocations: 162 kB / 414.5 MB, free: 20.44 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.468e-05/0.244, allocations: 69.42 kB / 414.6 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.978e-05/0.244, allocations: 37.58 kB / 414.6 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.244, allocations: 0 / 414.6 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.2441, allocations: 4.047 kB / 414.6 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.2441, allocations: 7.969 kB / 414.7 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001472/0.2442, allocations: 245.4 kB / 414.9 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2442, allocations: 0 / 414.9 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.896e-05/0.2443, allocations: 11.98 kB / 414.9 MB, free: 20.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2443, allocations: 4 kB / 414.9 MB, free: 20.01 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.2443, allocations: 4 kB / 414.9 MB, free: 20.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.2443, allocations: 8.062 kB / 414.9 MB, free: 20 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2443, allocations: 0 / 414.9 MB, free: 20 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002001/0.2445, allocations: 158.5 kB / 415.1 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.207e-05/0.2446, allocations: 124.8 kB / 415.2 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.829e-05/0.2447, allocations: 0 / 415.2 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.378e-05/0.2447, allocations: 8 kB / 415.2 MB, free: 19.67 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.968e-05/0.2448, allocations: 11.98 kB / 415.2 MB, free: 19.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.2448, allocations: 4 kB / 415.2 MB, free: 19.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001684/0.245, allocations: 245.9 kB / 415.5 MB, free: 19.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.245, allocations: 0 / 415.5 MB, free: 19.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002303/0.2452, allocations: 35.98 kB / 415.5 MB, free: 19.38 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008177/0.246, allocations: 423.4 kB / 415.9 MB, free: 19.1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001886/0.2462, allocations: 79.89 kB / 416 MB, free: 19.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2462, allocations: 0 / 416 MB, free: 19.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.768e-05/0.2463, allocations: 23.98 kB / 416 MB, free: 19 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003859/0.2467, allocations: 68.39 kB / 416.1 MB, free: 18.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005111/0.2472, allocations: 438.6 kB / 416.5 MB, free: 18.46 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001988/0.2474, allocations: 0.74 MB / 417.2 MB, free: 17.7 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.892e-05/0.2475, allocations: 27.42 kB / 417.3 MB, free: 17.67 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2475, allocations: 0 / 417.3 MB, free: 17.67 MB / 298.7 MB Notification: Performance of Templates: time 0.004273/0.2518, allocations: 2.942 MB / 420.2 MB, free: 14.74 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches