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.001538/0.001538, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001646/0.001645, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.533/1.533, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001377, allocations: 64.36 kB / 307.1 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1239, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.004131/0.1281, allocations: 1.591 MB / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.1295, allocations: 0.5531 MB / 359.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001974/0.1298, allocations: 4 kB / 359.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001005/0.13, allocations: 3.938 kB / 359.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002857/0.1303, allocations: 15.81 kB / 359.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005242/0.1308, allocations: 63.8 kB / 359.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001363/0.131, allocations: 47.86 kB / 359.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.1311, allocations: 20.16 kB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001492/0.1313, allocations: 31.84 kB / 359.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.747e-05/0.1314, allocations: 15.88 kB / 359.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.004e-05/0.1314, allocations: 4 kB / 359.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.597e-05/0.1315, allocations: 11.98 kB / 359.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.244e-05/0.1315, allocations: 11.94 kB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.977e-05/0.1316, allocations: 31.8 kB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001658/0.1318, allocations: 59.75 kB / 360 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1318, allocations: 0 / 360 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.998e-06/0.1318, allocations: 3.984 kB / 360 MB, free: 11.51 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.1318, allocations: 0 / 360 MB, free: 11.51 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.0005463/0.1323, allocations: 383.3 kB / 360.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.1324, allocations: 8.031 kB / 360.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.297e-05/0.1324, allocations: 34.75 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001781/0.1326, allocations: 24.83 kB / 360.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000229/0.1329, allocations: 199.7 kB / 360.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.1329, allocations: 8.125 kB / 360.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.1329, allocations: 4 kB / 360.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003388/0.1333, allocations: 117.9 kB / 360.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.1333, allocations: 0 / 360.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.1333, allocations: 0 / 360.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.1333, allocations: 0 / 360.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.747e-05/0.1334, allocations: 23.92 kB / 360.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004755/0.1339, allocations: 282.5 kB / 361.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001401/0.1341, allocations: 63.8 kB / 361.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.552e-05/0.1341, allocations: 34.62 kB / 361.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.273e-05/0.1342, allocations: 4 kB / 361.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.141e-05/0.1342, allocations: 42.5 kB / 361.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.422e-06/0.1342, allocations: 0 / 361.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003355/0.1346, allocations: 85.5 kB / 361.3 MB, free: 10 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.1347, allocations: 103.2 kB / 361.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001918/0.1349, allocations: 161.6 kB / 361.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.1349, allocations: 25.7 kB / 361.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.838e-05/0.135, allocations: 92.05 kB / 361.7 MB, free: 9.586 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.986e-05/0.135, allocations: 4 kB / 361.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.747e-05/0.1351, allocations: 13.72 kB / 361.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.1353, allocations: 322.8 kB / 362 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.716e-05/0.1353, allocations: 11.92 kB / 362.1 MB, free: 9.227 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.198e-05/0.1354, allocations: 39.38 kB / 362.1 MB, free: 9.176 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/0.1355, allocations: 39.42 kB / 362.1 MB, free: 9.125 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.1355, allocations: 7.938 kB / 362.1 MB, free: 9.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001528/0.1357, allocations: 73.52 kB / 362.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.1357, allocations: 8 kB / 362.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.1357, allocations: 0 / 362.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.1357, allocations: 0 / 362.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.107e-05/0.1358, allocations: 11.98 kB / 362.2 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.1359, allocations: 7.938 kB / 362.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.244e-05/0.1359, allocations: 0 / 362.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.1359, allocations: 4.125 kB / 362.2 MB, free: 9.008 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 9.74e-05/0.136, allocations: 130.8 kB / 362.4 MB, free: 8.871 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.341e-05/0.1361, allocations: 49.61 kB / 362.4 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.344e-05/0.1362, allocations: 11.86 kB / 362.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1362, allocations: 4 kB / 362.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.1362, allocations: 3.938 kB / 362.4 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.1362, allocations: 0 / 362.4 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001921/0.1364, allocations: 169.7 kB / 362.6 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.296e-05/0.1364, allocations: 4 kB / 362.6 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.123e-05/0.1365, allocations: 19.98 kB / 362.6 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1365, allocations: 96 / 362.6 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.1365, allocations: 7.984 kB / 362.6 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1365, allocations: 0 / 362.6 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.1365, allocations: 7.922 kB / 362.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001957/0.1367, allocations: 177.2 kB / 362.8 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.935e-05/0.1368, allocations: 97 kB / 362.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.707e-05/0.1368, allocations: 0 / 362.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.609e-05/0.1369, allocations: 4 kB / 362.9 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.338e-05/0.137, allocations: 7.922 kB / 362.9 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.137, allocations: 0 / 362.9 MB, free: 8.219 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.062e-05/0.1371, allocations: 118.6 kB / 363 MB, free: 8.105 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1371, allocations: 0 / 363 MB, free: 8.105 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002466/0.1373, allocations: 12 kB / 363 MB, free: 8.094 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.0006105/0.1379, allocations: 0.7101 MB / 363.8 MB, free: 7.352 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001868/0.1381, allocations: 35.98 kB / 363.8 MB, free: 7.316 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.1381, allocations: 3.938 kB / 363.8 MB, free: 7.312 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.332e-05/0.1382, allocations: 7.984 kB / 363.8 MB, free: 7.305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004953/0.1387, allocations: 35.89 kB / 363.8 MB, free: 7.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001682/0.1404, allocations: 1.398 MB / 365.2 MB, free: 5.766 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.1408, allocations: 0.6885 MB / 365.9 MB, free: 5.051 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.002e-05/0.1409, allocations: 4 kB / 365.9 MB, free: 5.047 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.209e-05/0.1409, allocations: 23.42 kB / 366 MB, free: 5.023 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1409, allocations: 0 / 366 MB, free: 5.023 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02201/0.1629, allocations: 1.704 MB / 367.7 MB, free: 3.414 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.049/8.212, allocations: 13.06 kB / 367.7 MB, free: 3.406 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