Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001021/0.001021, allocations: 173.3 kB / 16.77 MB, free: 4.922 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.517/1.517, allocations: 205.4 MB / 222.9 MB, free: 8.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008804/0.0008806, allocations: 97.47 kB / 271.3 MB, free: 8.227 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07913/0.07913, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007641/0.0007643, allocations: 12 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.135, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002282/0.1373, allocations: 1.548 MB / 444.5 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.1389, allocations: 0.972 MB / 445.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001668/0.1391, allocations: 7.938 kB / 445.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003671/0.1395, allocations: 63.8 kB / 445.6 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002663/0.1398, allocations: 63.78 kB / 445.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007426/0.1405, allocations: 207.5 kB / 445.8 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000253/0.1408, allocations: 143.5 kB / 446 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.1409, allocations: 29.56 kB / 446 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.141, allocations: 59.69 kB / 446 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001094/0.1412, allocations: 75.62 kB / 446.1 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.336e-05/0.1412, allocations: 0 / 446.1 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001602/0.1414, allocations: 51.95 kB / 446.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.551e-05/0.1414, allocations: 43.84 kB / 446.2 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.95e-05/0.1415, allocations: 89.25 kB / 446.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002557/0.1418, allocations: 167.9 kB / 446.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.1418, allocations: 4 kB / 446.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1418, allocations: 0 / 446.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.1418, allocations: 0 / 446.5 MB, free: 12.59 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.0006934/0.1425, allocations: 0.4962 MB / 447 MB, free: 12.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.1426, allocations: 12.03 kB / 447 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.477e-05/0.1427, allocations: 20.66 kB / 447 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003352/0.143, allocations: 287.6 kB / 447.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.143, allocations: 4.375 kB / 447.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.991e-05/0.1431, allocations: 16.12 kB / 447.3 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003422/0.1434, allocations: 159.5 kB / 447.5 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.1434, allocations: 0 / 447.5 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.1435, allocations: 0 / 447.5 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.1435, allocations: 3.984 kB / 447.5 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001114/0.1436, allocations: 43.97 kB / 447.5 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004832/0.1441, allocations: 386.3 kB / 447.9 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000203/0.1443, allocations: 115.9 kB / 448 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.574e-05/0.1444, allocations: 46.56 kB / 448 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.1444, allocations: 7.984 kB / 448 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001943/0.1446, allocations: 79.33 kB / 448.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.603e-06/0.1446, allocations: 0 / 448.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003656/0.145, allocations: 145.4 kB / 448.3 MB, free: 10.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.881e-05/0.1451, allocations: 162.2 kB / 448.4 MB, free: 10.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003085/0.1454, allocations: 330.8 kB / 448.7 MB, free: 10.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.222e-05/0.1454, allocations: 41.69 kB / 448.8 MB, free: 9.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.567e-05/0.1455, allocations: 124.1 kB / 448.9 MB, free: 9.855 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.315e-05/0.1456, allocations: 11.81 kB / 448.9 MB, free: 9.844 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-06/0.1456, allocations: 4 kB / 448.9 MB, free: 9.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.1457, allocations: 338.8 kB / 449.3 MB, free: 9.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.799e-05/0.1458, allocations: 23.98 kB / 449.3 MB, free: 9.477 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001/0.1459, allocations: 82.86 kB / 449.4 MB, free: 9.371 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000149/0.1461, allocations: 88.45 kB / 449.4 MB, free: 9.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1461, allocations: 3.938 kB / 449.4 MB, free: 9.266 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002223/0.1463, allocations: 125.4 kB / 449.6 MB, free: 9.137 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.1464, allocations: 4 kB / 449.6 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.1464, allocations: 0 / 449.6 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.614e-05/0.1464, allocations: 4 kB / 449.6 MB, free: 9.129 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.1465, allocations: 19.92 kB / 449.6 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.1466, allocations: 7.938 kB / 449.6 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.369e-05/0.1466, allocations: 15.84 kB / 449.6 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.121e-05/0.1467, allocations: 4 kB / 449.6 MB, free: 9.082 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,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.0001668/0.1468, allocations: 162.5 kB / 449.8 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.563e-05/0.1469, allocations: 65.36 kB / 449.8 MB, free: 8.844 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.661e-05/0.147, allocations: 25.7 kB / 449.9 MB, free: 8.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.147, allocations: 4 kB / 449.9 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.147, allocations: 0 / 449.9 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.147, allocations: 7.922 kB / 449.9 MB, free: 8.809 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002001/0.1473, allocations: 237.6 kB / 450.1 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1473, allocations: 0 / 450.1 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.855e-05/0.1473, allocations: 16.06 kB / 450.1 MB, free: 8.512 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1473, allocations: 0 / 450.1 MB, free: 8.512 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.102e-05/0.1474, allocations: 11.98 kB / 450.1 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1474, allocations: 0 / 450.1 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1474, allocations: 0 / 450.1 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002587/0.1476, allocations: 166.4 kB / 450.3 MB, free: 8.312 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.1478, allocations: 116.9 kB / 450.4 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.045e-05/0.1478, allocations: 0 / 450.4 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.097e-05/0.1479, allocations: 4.062 kB / 450.4 MB, free: 8.176 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.119e-05/0.148, allocations: 15.98 kB / 450.4 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.506e-05/0.148, allocations: 7.938 kB / 450.4 MB, free: 8.152 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002319/0.1482, allocations: 241.9 kB / 450.7 MB, free: 7.914 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1482, allocations: 3.938 kB / 450.7 MB, free: 7.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000275/0.1485, allocations: 35.91 kB / 450.7 MB, free: 7.875 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,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.001036/0.1496, allocations: 430.5 kB / 451.1 MB, free: 7.445 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002595/0.1498, allocations: 71.91 kB / 451.2 MB, free: 7.375 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1498, allocations: 0 / 451.2 MB, free: 7.375 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.708e-05/0.1499, allocations: 31.92 kB / 451.2 MB, free: 7.344 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004193/0.1504, allocations: 60.69 kB / 451.3 MB, free: 7.285 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005327/0.1509, allocations: 426.4 kB / 451.7 MB, free: 6.836 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001894/0.1511, allocations: 0.7361 MB / 452.5 MB, free: 6.074 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.843e-05/0.1512, allocations: 23.42 kB / 452.5 MB, free: 6.055 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1512, allocations: 3.938 kB / 452.5 MB, free: 6.051 MB / 298.7 MB Notification: Performance of Templates: time 0.004151/0.1553, allocations: 2.863 MB / 455.3 MB, free: 3.184 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches