Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_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_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001204/0.001203, allocations: 104.9 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001266/0.001266, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.585/1.585, allocations: 227.4 MB / 246.3 MB, free: 9.145 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 71.56 kB / 306.3 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1313, allocations: 50.53 MB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003872/0.1352, allocations: 1.949 MB / 358.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.1374, allocations: 1.27 MB / 360 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.1375, allocations: 11.94 kB / 360 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003714/0.138, allocations: 59.8 kB / 360.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003335/0.1383, allocations: 111.6 kB / 360.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007427/0.1391, allocations: 195.1 kB / 360.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002686/0.1394, allocations: 175.5 kB / 360.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.1395, allocations: 29.53 kB / 360.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.1396, allocations: 71.64 kB / 360.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.1398, allocations: 79.66 kB / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.728e-05/0.1398, allocations: 4 kB / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001755/0.14, allocations: 47.98 kB / 360.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.1401, allocations: 55.7 kB / 360.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.1402, allocations: 79.47 kB / 360.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003351/0.1406, allocations: 231.5 kB / 361.1 MB, free: 9.934 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1406, allocations: 0 / 361.1 MB, free: 9.934 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1406, allocations: 0 / 361.1 MB, free: 9.934 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.1406, allocations: 0 / 361.1 MB, free: 9.934 MB / 302.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.0008954/0.1415, allocations: 0.535 MB / 361.7 MB, free: 9.344 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.1416, allocations: 12.03 kB / 361.7 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.242e-05/0.1416, allocations: 20.66 kB / 361.7 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004004/0.1421, allocations: 291.5 kB / 362 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.1421, allocations: 8.375 kB / 362 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.644e-05/0.1421, allocations: 12.12 kB / 362 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004302/0.1426, allocations: 155.6 kB / 362.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.1426, allocations: 0 / 362.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.1426, allocations: 4 kB / 362.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.82e-05/0.1426, allocations: 4 kB / 362.2 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000123/0.1428, allocations: 35.92 kB / 362.2 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005567/0.1433, allocations: 386.3 kB / 362.6 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002638/0.1436, allocations: 119.9 kB / 362.7 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.3e-05/0.1437, allocations: 50.5 kB / 362.8 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.1437, allocations: 4 kB / 362.8 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002082/0.144, allocations: 83.31 kB / 362.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.502e-06/0.144, allocations: 0 / 362.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004025/0.1444, allocations: 153.3 kB / 363 MB, free: 7.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.931e-05/0.1445, allocations: 158.2 kB / 363.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003528/0.1448, allocations: 338.9 kB / 363.5 MB, free: 7.324 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/0.1449, allocations: 33.7 kB / 363.5 MB, free: 7.285 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.382e-05/0.145, allocations: 128 kB / 363.6 MB, free: 7.156 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.178e-05/0.145, allocations: 19.88 kB / 363.6 MB, free: 7.137 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.217e-05/0.1451, allocations: 33.7 kB / 363.7 MB, free: 7.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1452, allocations: 334.8 kB / 364 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.006e-05/0.1453, allocations: 20 kB / 364 MB, free: 6.742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.1454, allocations: 94.78 kB / 364.1 MB, free: 6.625 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001482/0.1455, allocations: 80.22 kB / 364.2 MB, free: 6.531 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1456, allocations: 4 kB / 364.2 MB, free: 6.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002296/0.1458, allocations: 133.2 kB / 364.3 MB, free: 6.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.1458, allocations: 4 kB / 364.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.1458, allocations: 0 / 364.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.1459, allocations: 4 kB / 364.3 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.146, allocations: 19.98 kB / 364.4 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.146, allocations: 0 / 364.4 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.624e-05/0.1461, allocations: 8.062 kB / 364.4 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.1461, allocations: 8 kB / 364.4 MB, free: 6.348 MB / 302.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,table.y,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.0001607/0.1463, allocations: 166 kB / 364.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.477e-05/0.1464, allocations: 65.41 kB / 364.6 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.399e-05/0.1465, allocations: 29.7 kB / 364.6 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.1465, allocations: 0 / 364.6 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.1465, allocations: 4 kB / 364.6 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.1465, allocations: 7.938 kB / 364.6 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002649/0.1468, allocations: 241.5 kB / 364.9 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1468, allocations: 4.062 kB / 364.9 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.968e-05/0.1469, allocations: 11.94 kB / 364.9 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.1469, allocations: 4 kB / 364.9 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.535e-05/0.1469, allocations: 3.984 kB / 364.9 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.1469, allocations: 0 / 364.9 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1469, allocations: 7.938 kB / 364.9 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003028/0.1472, allocations: 174.3 kB / 365.1 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.1474, allocations: 108.9 kB / 365.2 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/0.1474, allocations: 8 kB / 365.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.96e-05/0.1475, allocations: 7.984 kB / 365.2 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.886e-05/0.1476, allocations: 7.984 kB / 365.2 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-05/0.1476, allocations: 7.938 kB / 365.2 MB, free: 5.398 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002449/0.1479, allocations: 245.9 kB / 365.5 MB, free: 5.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1479, allocations: 0 / 365.5 MB, free: 5.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003056/0.1482, allocations: 35.98 kB / 365.5 MB, free: 5.125 MB / 302.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,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 (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.00121/0.1494, allocations: 429.8 kB / 365.9 MB, free: 4.836 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002799/0.1497, allocations: 71.91 kB / 366 MB, free: 4.766 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.1497, allocations: 0 / 366 MB, free: 4.766 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.543e-05/0.1498, allocations: 31.98 kB / 366 MB, free: 4.734 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004556/0.1503, allocations: 54.27 kB / 366.1 MB, free: 4.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007048/0.151, allocations: 426.8 kB / 366.5 MB, free: 4.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/0.1513, allocations: 0.7361 MB / 367.2 MB, free: 3.469 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001042/0.1514, allocations: 37.52 kB / 367.3 MB, free: 3.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.219e-05/0.1515, allocations: 19.44 kB / 367.3 MB, free: 3.414 MB / 302.1 MB Notification: Performance of SimCode: time 1.91e-07/0.1515, allocations: 0 / 367.3 MB, free: 3.414 MB / 302.1 MB Notification: Performance of Templates: time 0.007244/0.1587, allocations: 2.766 MB / 370 MB, free: 0.6641 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches