Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 96.47 kB / 15.74 MB, free: 424 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 174.1 kB / 16.62 MB, free: 6.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.87/1.87, allocations: 205.4 MB / 222.8 MB, free: 5.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1121/0.1121, allocations: 12.61 MB / 283.7 MB, free: 8.684 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008315/0.0008317, allocations: 20 kB / 344.5 MB, free: 21.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1325, allocations: 50.38 MB / 394.9 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002871/0.1355, allocations: 1.545 MB / 396.5 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.1373, allocations: 0.9915 MB / 397.4 MB, free: 236 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.1375, allocations: 7.938 kB / 397.5 MB, free: 228 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003643/0.1378, allocations: 59.78 kB / 397.5 MB, free: 168 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002181/0.1381, allocations: 67.73 kB / 397.6 MB, free: 100 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007154/0.1388, allocations: 211.6 kB / 397.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002176/0.139, allocations: 143.5 kB / 397.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.1391, allocations: 21.55 kB / 397.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.979e-05/0.1393, allocations: 67.69 kB / 398 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/0.1394, allocations: 67.69 kB / 398.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.841e-05/0.1394, allocations: 0 / 398.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.1395, allocations: 51.92 kB / 398.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.154e-05/0.1396, allocations: 43.88 kB / 398.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.082e-05/0.1397, allocations: 53.58 kB / 398.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002234/0.1399, allocations: 167.9 kB / 398.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1399, allocations: 4 kB / 398.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1399, allocations: 0 / 398.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.14, allocations: 0 / 398.4 MB, free: 15.28 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.0007203/0.1407, allocations: 0.496 MB / 398.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.1407, allocations: 15.97 kB / 398.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.87e-05/0.1408, allocations: 19.72 kB / 398.9 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003553/0.1412, allocations: 278.4 kB / 399.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/0.1412, allocations: 11.94 kB / 399.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.615e-05/0.1412, allocations: 4 kB / 399.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003668/0.1416, allocations: 163.5 kB / 399.4 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.1416, allocations: 0 / 399.4 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.1416, allocations: 4 kB / 399.4 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.1416, allocations: 0 / 399.4 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001293/0.1418, allocations: 39.97 kB / 399.4 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005311/0.1423, allocations: 386.3 kB / 399.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002465/0.1426, allocations: 115.9 kB / 399.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.183e-05/0.1427, allocations: 46.56 kB / 400 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.036e-05/0.1427, allocations: 7.984 kB / 400 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002174/0.1429, allocations: 75.33 kB / 400 MB, free: 13.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.754e-06/0.143, allocations: 0 / 400 MB, free: 13.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003831/0.1433, allocations: 157.3 kB / 400.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.1435, allocations: 170.1 kB / 400.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003481/0.1438, allocations: 318.7 kB / 400.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.1438, allocations: 37.69 kB / 400.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.916e-05/0.144, allocations: 128 kB / 400.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.435e-05/0.144, allocations: 19.88 kB / 400.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.001e-06/0.144, allocations: 4.188 kB / 400.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.1442, allocations: 338.8 kB / 401.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.388e-05/0.1443, allocations: 19.98 kB / 401.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.1444, allocations: 82.86 kB / 401.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.111e-05/0.1445, allocations: 35.98 kB / 401.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1445, allocations: 0 / 401.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002099/0.1447, allocations: 117.4 kB / 401.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.1447, allocations: 8 kB / 401.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.1447, allocations: 0 / 401.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.1448, allocations: 3.984 kB / 401.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.1449, allocations: 20.06 kB / 401.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.1449, allocations: 8 kB / 401.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.431e-05/0.145, allocations: 15.94 kB / 401.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.145, allocations: 4 kB / 401.5 MB, free: 11.85 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample.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.0001756/0.1452, allocations: 153.5 kB / 401.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.839e-05/0.1452, allocations: 65.34 kB / 401.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.879e-05/0.1453, allocations: 29.7 kB / 401.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.1453, allocations: 0 / 401.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1453, allocations: 8.375 kB / 401.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.1453, allocations: 0 / 401.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002075/0.1456, allocations: 241.4 kB / 402 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.1456, allocations: 4 kB / 402 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.95e-05/0.1456, allocations: 11.98 kB / 402 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.1456, allocations: 7.938 kB / 402 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.1457, allocations: 0 / 402 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.1457, allocations: 4 kB / 402 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1457, allocations: 3.938 kB / 402 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002425/0.1459, allocations: 166.5 kB / 402.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.146, allocations: 116.8 kB / 402.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.364e-05/0.1461, allocations: 4 kB / 402.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.004e-05/0.1461, allocations: 7.938 kB / 402.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.397e-05/0.1462, allocations: 11.98 kB / 402.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-05/0.1462, allocations: 4 kB / 402.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002716/0.1465, allocations: 245.9 kB / 402.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1465, allocations: 0 / 402.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000271/0.1468, allocations: 28 kB / 402.6 MB, free: 10.65 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,sample.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.0009557/0.1478, allocations: 427.7 kB / 403 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002248/0.148, allocations: 71.91 kB / 403.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.148, allocations: 0 / 403.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.362e-05/0.1481, allocations: 32.17 kB / 403.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003875/0.1485, allocations: 61.16 kB / 403.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005842/0.1491, allocations: 396.3 kB / 403.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003989/0.1495, allocations: 0.74 MB / 404.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.966e-05/0.1496, allocations: 33.5 kB / 404.3 MB, free: 8.844 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.673e-05/0.1496, allocations: 19.44 kB / 404.3 MB, free: 8.828 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1497, allocations: 0 / 404.3 MB, free: 8.828 MB / 302.1 MB Notification: Performance of Templates: time 0.006389/0.156, allocations: 2.619 MB / 407 MB, free: 6.203 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],time