Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 112.3 kB / 16.62 MB, free: 6.812 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.001349/0.001349, allocations: 185.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.533/1.533, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 42.42 kB / 300.2 MB, free: 6.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1295, allocations: 49.45 MB / 349.7 MB, free: 4.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003539/0.1331, allocations: 1.921 MB / 351.6 MB, free: 2.754 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001774/0.1349, allocations: 1.118 MB / 352.7 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.1351, allocations: 7.938 kB / 352.7 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003964/0.1355, allocations: 55.8 kB / 352.8 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002675/0.1358, allocations: 87.7 kB / 352.9 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007171/0.1365, allocations: 232.9 kB / 353.1 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002444/0.1368, allocations: 163.5 kB / 353.3 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.1369, allocations: 33.53 kB / 353.3 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.137, allocations: 67.66 kB / 353.4 MB, free: 1 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001204/0.1371, allocations: 91.66 kB / 353.4 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.667e-05/0.1372, allocations: 8 kB / 353.5 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001449/0.1373, allocations: 67.91 kB / 353.5 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.034e-05/0.1374, allocations: 47.84 kB / 353.6 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.802e-05/0.1375, allocations: 79.47 kB / 353.6 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003219/0.1378, allocations: 231.5 kB / 353.9 MB, free: 496 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.1379, allocations: 4 kB / 353.9 MB, free: 492 kB / 286.1 MB Notification: Performance of FrontEnd: time 4.038e-06/0.1379, allocations: 0 / 353.9 MB, free: 492 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.1379, allocations: 3.938 kB / 353.9 MB, free: 488 kB / 286.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.0008498/0.1387, allocations: 0.5273 MB / 354.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.1388, allocations: 8.031 kB / 354.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.117e-05/0.1388, allocations: 42.73 kB / 354.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.26e-05/0.1389, allocations: 24.66 kB / 354.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003555/0.1393, allocations: 279.6 kB / 354.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.1393, allocations: 12.31 kB / 354.8 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.19e-05/0.1393, allocations: 7.938 kB / 354.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003501/0.1397, allocations: 155.6 kB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.1397, allocations: 0 / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.1397, allocations: 4 kB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.1398, allocations: 4 kB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.1399, allocations: 31.92 kB / 355 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005704/0.1404, allocations: 390.3 kB / 355.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002607/0.1407, allocations: 123.9 kB / 355.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.153e-05/0.1408, allocations: 42.56 kB / 355.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.164e-05/0.1409, allocations: 7.938 kB / 355.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002789/0.1411, allocations: 75.38 kB / 355.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.733e-06/0.1412, allocations: 3.938 kB / 355.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004097/0.1416, allocations: 153.3 kB / 355.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.1417, allocations: 166.1 kB / 355.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003697/0.1421, allocations: 334.6 kB / 356.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.1421, allocations: 25.7 kB / 356.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.1422, allocations: 124.1 kB / 356.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.729e-05/0.1423, allocations: 19.8 kB / 356.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.448e-05/0.1424, allocations: 29.97 kB / 356.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1425, allocations: 334.8 kB / 356.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.365e-05/0.1426, allocations: 27.92 kB / 356.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.1427, allocations: 78.86 kB / 356.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001618/0.1429, allocations: 88.45 kB / 356.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1429, allocations: 4 kB / 356.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002387/0.1431, allocations: 125.3 kB / 357.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/0.1432, allocations: 12.12 kB / 357.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.1432, allocations: 0 / 357.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.1432, allocations: 0 / 357.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.1433, allocations: 23.92 kB / 357.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.1433, allocations: 0 / 357.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.325e-05/0.1434, allocations: 11.94 kB / 357.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.1434, allocations: 4 kB / 357.1 MB, free: 12.88 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.0001441/0.1436, allocations: 153.8 kB / 357.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.621e-05/0.1437, allocations: 69.36 kB / 357.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.509e-05/0.1438, allocations: 29.7 kB / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1438, allocations: 0 / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.1438, allocations: 4 kB / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.1438, allocations: 7.922 kB / 357.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002255/0.144, allocations: 237.6 kB / 357.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.144, allocations: 0 / 357.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.118e-05/0.1441, allocations: 8 kB / 357.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/0.1441, allocations: 4 kB / 357.6 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/0.1441, allocations: 7.984 kB / 357.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.1441, allocations: 0 / 357.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.1441, allocations: 8.062 kB / 357.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000266/0.1444, allocations: 162.4 kB / 357.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.1445, allocations: 108.8 kB / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.518e-05/0.1446, allocations: 12.03 kB / 357.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.455e-05/0.1446, allocations: 7.922 kB / 357.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.943e-05/0.1447, allocations: 19.94 kB / 357.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.1447, allocations: 12.05 kB / 358 MB, free: 11.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002259/0.145, allocations: 237.9 kB / 358.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.145, allocations: 0 / 358.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000268/0.1453, allocations: 36 kB / 358.2 MB, free: 11.67 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.001553/0.1468, allocations: 1.018 MB / 359.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002498/0.1471, allocations: 75.91 kB / 359.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1471, allocations: 3.938 kB / 359.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.776e-05/0.1472, allocations: 27.98 kB / 359.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000441/0.1476, allocations: 86.19 kB / 359.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002658/0.1503, allocations: 2.234 MB / 361.7 MB, free: 8.234 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.1506, allocations: 0.7397 MB / 362.4 MB, free: 7.469 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.659e-05/0.1508, allocations: 25.55 kB / 362.4 MB, free: 7.441 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.1509, allocations: 59.41 kB / 362.5 MB, free: 7.383 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1509, allocations: 0 / 362.5 MB, free: 7.383 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01832/0.1692, allocations: 5.058 MB / 367.5 MB, free: 2.488 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002867/0.1695, allocations: 262.6 kB / 367.8 MB, free: 2.164 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.207/2.376, allocations: 3.875 kB / 367.8 MB, free: 2.164 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches