Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001314/0.001314, allocations: 101 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001438/0.001438, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.3 MB, free: 9.047 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 62.3 kB / 306.4 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1433, allocations: 50.53 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.004456/0.1478, allocations: 1.648 MB / 358.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.1492, allocations: 0.5454 MB / 359.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.1494, allocations: 3.938 kB / 359.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.23e-05/0.1495, allocations: 3.938 kB / 359.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001844/0.1497, allocations: 15.92 kB / 359.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004552/0.1502, allocations: 59.81 kB / 359.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000134/0.1503, allocations: 39.86 kB / 359.2 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.1505, allocations: 16.16 kB / 359.2 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.1506, allocations: 31.86 kB / 359.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.799e-05/0.1507, allocations: 19.92 kB / 359.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.591e-05/0.1507, allocations: 4 kB / 359.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.984e-05/0.1508, allocations: 8 kB / 359.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.78e-05/0.1509, allocations: 15.92 kB / 359.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.675e-05/0.1509, allocations: 27.75 kB / 359.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001629/0.1511, allocations: 55.8 kB / 359.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.1511, allocations: 0 / 359.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1511, allocations: 0 / 359.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.1511, allocations: 0 / 359.4 MB, free: 11.67 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007018/0.1518, allocations: 393.5 kB / 359.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.1519, allocations: 8.031 kB / 359.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.022e-05/0.1519, allocations: 38.69 kB / 359.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001904/0.1521, allocations: 20.83 kB / 359.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002778/0.1524, allocations: 200.3 kB / 360 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.1525, allocations: 4.125 kB / 360 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.823e-05/0.1525, allocations: 8 kB / 360 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000342/0.1528, allocations: 113.9 kB / 360.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.1528, allocations: 0 / 360.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.1529, allocations: 0 / 360.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1529, allocations: 0 / 360.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.161e-05/0.153, allocations: 23.92 kB / 360.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004476/0.1534, allocations: 282.5 kB / 360.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.1536, allocations: 67.78 kB / 360.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.575e-05/0.1537, allocations: 30.62 kB / 360.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.784e-05/0.1537, allocations: 7.938 kB / 360.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.1537, allocations: 34.56 kB / 360.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.182e-06/0.1537, allocations: 0 / 360.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003738/0.1541, allocations: 85.52 kB / 360.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.683e-05/0.1542, allocations: 115.1 kB / 360.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.1544, allocations: 145.7 kB / 360.9 MB, free: 9.875 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.1544, allocations: 29.7 kB / 361 MB, free: 9.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.819e-05/0.1545, allocations: 96.03 kB / 361 MB, free: 9.742 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.1545, allocations: 3.938 kB / 361.1 MB, free: 9.738 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.992e-05/0.1546, allocations: 17.72 kB / 361.1 MB, free: 9.715 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.1547, allocations: 322.8 kB / 361.4 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.667e-05/0.1548, allocations: 7.938 kB / 361.4 MB, free: 9.383 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.714e-05/0.1549, allocations: 43.41 kB / 361.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001844/0.1551, allocations: 43.36 kB / 361.5 MB, free: 9.273 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1551, allocations: 4 kB / 361.5 MB, free: 9.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000154/0.1552, allocations: 69.52 kB / 361.5 MB, free: 9.195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.1553, allocations: 8 kB / 361.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.1553, allocations: 0 / 361.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.1553, allocations: 0 / 361.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.949e-05/0.1554, allocations: 11.94 kB / 361.6 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.1554, allocations: 7.922 kB / 361.6 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.115e-05/0.1555, allocations: 12 kB / 361.6 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.1555, allocations: 8.125 kB / 361.6 MB, free: 9.148 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001139/0.1556, allocations: 118.9 kB / 361.7 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.963e-05/0.1557, allocations: 53.53 kB / 361.8 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.99e-05/0.1558, allocations: 11.88 kB / 361.8 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.1558, allocations: 4 kB / 361.8 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.1558, allocations: 3.938 kB / 361.8 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1558, allocations: 3.984 kB / 361.8 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002217/0.156, allocations: 169.7 kB / 362 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.156, allocations: 4.062 kB / 362 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.794e-05/0.1561, allocations: 8 kB / 362 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.1561, allocations: 3.984 kB / 362 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.1562, allocations: 4 kB / 362 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.594e-06/0.1562, allocations: 0 / 362 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.1562, allocations: 3.938 kB / 362 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002292/0.1564, allocations: 181.1 kB / 362.2 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.224e-05/0.1565, allocations: 93 kB / 362.2 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/0.1565, allocations: 0 / 362.2 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.35e-05/0.1566, allocations: 8 kB / 362.3 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.267e-05/0.1566, allocations: 3.938 kB / 362.3 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.1566, allocations: 3.984 kB / 362.3 MB, free: 8.375 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.195e-05/0.1567, allocations: 110.5 kB / 362.4 MB, free: 8.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1567, allocations: 0 / 362.4 MB, free: 8.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002299/0.157, allocations: 4 kB / 362.4 MB, free: 8.266 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0005815/0.1576, allocations: 0.7179 MB / 363.1 MB, free: 7.516 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001733/0.1578, allocations: 35.92 kB / 363.1 MB, free: 7.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1578, allocations: 3.938 kB / 363.1 MB, free: 7.477 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.245e-05/0.1578, allocations: 15.92 kB / 363.1 MB, free: 7.461 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004883/0.1583, allocations: 27.95 kB / 363.2 MB, free: 7.434 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001728/0.1601, allocations: 1.413 MB / 364.6 MB, free: 5.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004031/0.1605, allocations: 0.6926 MB / 365.3 MB, free: 5.191 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.83e-05/0.1605, allocations: 4 kB / 365.3 MB, free: 5.188 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.327e-05/0.1606, allocations: 19.42 kB / 365.3 MB, free: 5.168 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1606, allocations: 0 / 365.3 MB, free: 5.168 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01418/0.1748, allocations: 1.57 MB / 366.9 MB, free: 3.723 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002494/0.1751, allocations: 209 kB / 367.1 MB, free: 3.469 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.887/2.062, allocations: 7.562 kB / 367.1 MB, free: 3.465 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches