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.001141/0.001141, allocations: 102.8 kB / 16.45 MB, free: 6.43 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.001043/0.001044, allocations: 190.1 kB / 17.38 MB, free: 5.695 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.75/1.75, allocations: 205.1 MB / 223.3 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08344/0.08344, allocations: 12.59 MB / 283.2 MB, free: 15.4 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.002828/0.002828, allocations: 91.02 kB / 394.2 MB, free: 45.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1346, allocations: 49.4 MB / 443.6 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004068/0.1387, allocations: 1.864 MB / 445.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002162/0.1409, allocations: 1.069 MB / 446.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002279/0.1412, allocations: 7.938 kB / 446.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004596/0.1417, allocations: 63.67 kB / 446.6 MB, free: 13.48 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004069/0.1421, allocations: 87.59 kB / 446.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009506/0.1431, allocations: 231.4 kB / 446.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004057/0.1435, allocations: 167.6 kB / 447 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.1437, allocations: 33.48 kB / 447.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001742/0.1439, allocations: 79.64 kB / 447.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001786/0.1441, allocations: 79.66 kB / 447.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.709e-05/0.1441, allocations: 8 kB / 447.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002144/0.1443, allocations: 67.91 kB / 447.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.1445, allocations: 51.77 kB / 447.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.1446, allocations: 75.48 kB / 447.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000543/0.1451, allocations: 231.3 kB / 447.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.717e-06/0.1452, allocations: 3.938 kB / 447.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.1452, allocations: 0 / 447.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.62e-05/0.1452, allocations: 0 / 447.7 MB, free: 12.38 MB / 334.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.001349/0.1466, allocations: 0.5312 MB / 448.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.198e-05/0.1466, allocations: 8.031 kB / 448.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.1468, allocations: 24.66 kB / 448.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007382/0.1475, allocations: 287.6 kB / 448.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.229e-05/0.1476, allocations: 8.359 kB / 448.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.107e-05/0.1476, allocations: 12.12 kB / 448.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004707/0.1481, allocations: 167.5 kB / 448.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.1481, allocations: 3.938 kB / 448.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.002e-05/0.1481, allocations: 0 / 448.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.1482, allocations: 4 kB / 448.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001738/0.1483, allocations: 43.97 kB / 448.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007667/0.1491, allocations: 386.2 kB / 449.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003894/0.1495, allocations: 119.9 kB / 449.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.1496, allocations: 46.56 kB / 449.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.997e-05/0.1497, allocations: 0 / 449.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002464/0.15, allocations: 87.31 kB / 449.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 2.735e-06/0.15, allocations: 0 / 449.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005544/0.1505, allocations: 141.4 kB / 449.5 MB, free: 10.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001561/0.1507, allocations: 158.2 kB / 449.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004685/0.1512, allocations: 334.5 kB / 450 MB, free: 9.785 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.1512, allocations: 29.69 kB / 450 MB, free: 9.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.1513, allocations: 128.4 kB / 450.1 MB, free: 9.621 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.557e-05/0.1514, allocations: 11.81 kB / 450.1 MB, free: 9.609 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.268e-05/0.1515, allocations: 33.7 kB / 450.2 MB, free: 9.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.1517, allocations: 338.8 kB / 450.5 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.554e-05/0.1518, allocations: 23.98 kB / 450.5 MB, free: 9.207 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.1519, allocations: 94.8 kB / 450.6 MB, free: 9.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.1521, allocations: 80.22 kB / 450.7 MB, free: 8.996 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1521, allocations: 0 / 450.7 MB, free: 8.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003205/0.1524, allocations: 137.3 kB / 450.8 MB, free: 8.855 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.1525, allocations: 4 kB / 450.8 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1525, allocations: 4 kB / 450.8 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.1525, allocations: 0 / 450.8 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.1526, allocations: 19.98 kB / 450.9 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.1527, allocations: 0 / 450.9 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.285e-05/0.1528, allocations: 11.88 kB / 450.9 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.1528, allocations: 4.312 kB / 450.9 MB, free: 8.812 MB / 334.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.0001707/0.153, allocations: 161.9 kB / 451 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/0.1531, allocations: 69.34 kB / 451.1 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.999e-05/0.1532, allocations: 29.7 kB / 451.1 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1532, allocations: 0 / 451.1 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.1532, allocations: 0 / 451.1 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.1532, allocations: 3.938 kB / 451.1 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002776/0.1535, allocations: 233.6 kB / 451.4 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.1535, allocations: 4 kB / 451.4 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.095e-05/0.1536, allocations: 11.98 kB / 451.4 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.1536, allocations: 0 / 451.4 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.1536, allocations: 8.062 kB / 451.4 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1536, allocations: 0 / 451.4 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1536, allocations: 3.938 kB / 451.4 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003343/0.154, allocations: 166.4 kB / 451.6 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001715/0.1542, allocations: 120.7 kB / 451.7 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.879e-05/0.1542, allocations: 0 / 451.7 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.502e-05/0.1543, allocations: 8 kB / 451.7 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.671e-05/0.1544, allocations: 11.98 kB / 451.7 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.557e-05/0.1544, allocations: 7.938 kB / 451.7 MB, free: 7.879 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002788/0.1547, allocations: 245.9 kB / 451.9 MB, free: 7.641 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1547, allocations: 0 / 451.9 MB, free: 7.641 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003898/0.1551, allocations: 36 kB / 452 MB, free: 7.605 MB / 334.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.001597/0.1567, allocations: 416.6 kB / 452.4 MB, free: 7.188 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003722/0.1571, allocations: 75.91 kB / 452.5 MB, free: 7.113 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.1571, allocations: 0 / 452.5 MB, free: 7.113 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.1572, allocations: 31.92 kB / 452.5 MB, free: 7.082 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006783/0.1579, allocations: 74.41 kB / 452.6 MB, free: 7.012 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.1591, allocations: 357.7 kB / 452.9 MB, free: 6.629 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007802/0.1599, allocations: 0.7358 MB / 453.6 MB, free: 5.867 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00022/0.1601, allocations: 29.77 kB / 453.7 MB, free: 5.836 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.787e-05/0.1602, allocations: 19.44 kB / 453.7 MB, free: 5.816 MB / 334.1 MB Notification: Performance of SimCode: time 1.142e-06/0.1602, allocations: 4 kB / 453.7 MB, free: 5.812 MB / 334.1 MB Notification: Performance of Templates: time 0.01224/0.1725, allocations: 2.855 MB / 456.6 MB, free: 2.957 MB / 334.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches