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.009507/0.009507, allocations: 88.56 kB / 15.91 MB, free: 6.301 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.001826/0.001826, allocations: 199.6 kB / 16.83 MB, free: 6.234 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.595/1.595, allocations: 205.1 MB / 222.7 MB, free: 4.773 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.08024/0.08024, allocations: 12.6 MB / 282.6 MB, free: 8.891 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.001606/0.001606, allocations: 83.89 kB / 342.8 MB, free: 21.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.124, allocations: 49.39 MB / 392.2 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003526/0.1276, allocations: 1.93 MB / 394.1 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00174/0.1294, allocations: 1.045 MB / 395.2 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.1295, allocations: 4 kB / 395.2 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003076/0.1298, allocations: 63.8 kB / 395.2 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002085/0.13, allocations: 87.7 kB / 395.3 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006255/0.1307, allocations: 199.7 kB / 395.5 MB, free: 380 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002141/0.1309, allocations: 159.5 kB / 395.7 MB, free: 220 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.131, allocations: 29.55 kB / 395.7 MB, free: 192 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.1311, allocations: 71.62 kB / 395.8 MB, free: 120 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.1313, allocations: 75.69 kB / 395.8 MB, free: 44 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.343e-05/0.1313, allocations: 4 kB / 395.8 MB, free: 40 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.1314, allocations: 48.03 kB / 395.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.762e-05/0.1315, allocations: 55.69 kB / 395.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.1317, allocations: 79.42 kB / 396 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002654/0.132, allocations: 219.6 kB / 396.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.132, allocations: 4 kB / 396.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.91e-07/0.132, allocations: 0 / 396.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.132, allocations: 0 / 396.2 MB, free: 15.64 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.000706/0.1327, allocations: 0.5272 MB / 396.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.1328, allocations: 8.031 kB / 396.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.583e-05/0.1328, allocations: 24.66 kB / 396.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003201/0.1332, allocations: 287.5 kB / 397.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.1332, allocations: 8.375 kB / 397.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.879e-05/0.1332, allocations: 8.125 kB / 397.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003237/0.1335, allocations: 159.6 kB / 397.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.1336, allocations: 0 / 397.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.1336, allocations: 0 / 397.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.1336, allocations: 7.938 kB / 397.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001129/0.1337, allocations: 39.97 kB / 397.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005048/0.1342, allocations: 382.2 kB / 397.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000266/0.1345, allocations: 119.9 kB / 397.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.468e-05/0.1346, allocations: 50.5 kB / 397.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.881e-05/0.1347, allocations: 4 kB / 397.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002655/0.1349, allocations: 87.31 kB / 397.9 MB, free: 13.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.633e-06/0.1349, allocations: 0 / 397.9 MB, free: 13.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003958/0.1353, allocations: 153.3 kB / 398.1 MB, free: 13.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.1355, allocations: 154.2 kB / 398.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003384/0.1358, allocations: 326.7 kB / 398.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.1358, allocations: 33.95 kB / 398.6 MB, free: 13.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.1359, allocations: 128.1 kB / 398.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.774e-05/0.136, allocations: 23.86 kB / 398.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.725e-05/0.1361, allocations: 29.61 kB / 398.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.1362, allocations: 334.8 kB / 399.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.133e-05/0.1363, allocations: 23.98 kB / 399.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.1364, allocations: 90.78 kB / 399.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000147/0.1366, allocations: 80.22 kB / 399.3 MB, free: 12.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1366, allocations: 4 kB / 399.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002313/0.1368, allocations: 125.4 kB / 399.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.1369, allocations: 9.25 kB / 399.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1369, allocations: 0 / 399.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.1369, allocations: 0 / 399.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.137, allocations: 19.98 kB / 399.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.137, allocations: 0 / 399.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.678e-05/0.1371, allocations: 15.86 kB / 399.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.665e-06/0.1371, allocations: 4 kB / 399.4 MB, free: 12.08 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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001579/0.1373, allocations: 157.9 kB / 399.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.583e-05/0.1374, allocations: 73.38 kB / 399.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.682e-05/0.1374, allocations: 29.7 kB / 399.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1374, allocations: 320 / 399.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.575e-06/0.1375, allocations: 4 kB / 399.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1375, allocations: 7.875 kB / 399.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002609/0.1377, allocations: 241.5 kB / 399.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1378, allocations: 0 / 399.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.041e-05/0.1378, allocations: 19.98 kB / 400 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.1378, allocations: 4 kB / 400 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.1378, allocations: 0 / 400 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.1379, allocations: 0 / 400 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.1379, allocations: 4 kB / 400 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002693/0.1381, allocations: 158.5 kB / 400.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001525/0.1383, allocations: 120.8 kB / 400.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.123e-05/0.1383, allocations: 4 kB / 400.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.127e-05/0.1384, allocations: 4 kB / 400.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.032e-05/0.1385, allocations: 11.98 kB / 400.3 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.1385, allocations: 7.938 kB / 400.3 MB, free: 11.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002122/0.1387, allocations: 237.9 kB / 400.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1387, allocations: 0 / 400.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002578/0.139, allocations: 35.98 kB / 400.5 MB, free: 10.87 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 (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.0008958/0.1399, allocations: 435.6 kB / 401 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002073/0.1401, allocations: 67.91 kB / 401 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1401, allocations: 0 / 401 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.017e-05/0.1402, allocations: 27.98 kB / 401.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003913/0.1406, allocations: 61.09 kB / 401.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006176/0.1412, allocations: 407.3 kB / 401.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003965/0.1416, allocations: 0.74 MB / 402.3 MB, free: 9.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.55e-05/0.1417, allocations: 29.53 kB / 402.3 MB, free: 9.059 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.142e-05/0.1418, allocations: 23.42 kB / 402.3 MB, free: 9.039 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1418, allocations: 0 / 402.3 MB, free: 9.039 MB / 302.1 MB Notification: Performance of Templates: time 0.006259/0.1481, allocations: 2.74 MB / 405 MB, free: 6.293 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.makefile (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) 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) Reference file matches