Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.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.ClockSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_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.001599/0.001599, 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.00186/0.00186, 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.485/1.485, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 61.09 kB / 307.1 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.103, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003222/0.1062, allocations: 1.558 MB / 359.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.1073, allocations: 0.5532 MB / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.337e-05/0.1074, allocations: 0 / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.865e-05/0.1075, allocations: 3.938 kB / 359.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.1076, allocations: 15.88 kB / 359.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003341/0.108, allocations: 63.73 kB / 359.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001188/0.1081, allocations: 47.86 kB / 359.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.1082, allocations: 20.16 kB / 359.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.1084, allocations: 31.86 kB / 359.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.119e-05/0.1084, allocations: 19.86 kB / 359.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.1085, allocations: 4 kB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.639e-05/0.1085, allocations: 7.984 kB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.538e-05/0.1086, allocations: 11.94 kB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.772e-05/0.1086, allocations: 31.8 kB / 359.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001395/0.1088, allocations: 63.73 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1088, allocations: 0 / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1088, allocations: 0 / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.1088, allocations: 0 / 360 MB, free: 11.55 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.0004917/0.1093, allocations: 383.3 kB / 360.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.1093, allocations: 11.97 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.499e-05/0.1094, allocations: 34.69 kB / 360.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001567/0.1095, allocations: 20.83 kB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002223/0.1098, allocations: 203.7 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.504e-06/0.1098, allocations: 4.125 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.594e-05/0.1098, allocations: 11.98 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002613/0.1101, allocations: 105 kB / 360.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.1101, allocations: 0 / 360.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.1101, allocations: 7.938 kB / 360.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1101, allocations: 4 kB / 360.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.244e-05/0.1102, allocations: 23.92 kB / 360.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000312/0.1105, allocations: 265.7 kB / 361.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.692e-05/0.1106, allocations: 45.16 kB / 361.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.316e-05/0.1107, allocations: 25.77 kB / 361.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.702e-05/0.1107, allocations: 0 / 361.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.925e-05/0.1108, allocations: 34.56 kB / 361.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.1108, allocations: 0 / 361.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002492/0.111, allocations: 69.77 kB / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.1111, allocations: 85.11 kB / 361.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.1112, allocations: 145.7 kB / 361.5 MB, free: 9.871 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.1112, allocations: 29.7 kB / 361.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.032e-05/0.1113, allocations: 88.14 kB / 361.6 MB, free: 9.746 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.623e-05/0.1113, allocations: 3.906 kB / 361.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.129e-05/0.1114, allocations: 17.7 kB / 361.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1115, allocations: 318.8 kB / 361.9 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.231e-05/0.1115, allocations: 11.98 kB / 361.9 MB, free: 9.387 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.167e-05/0.1116, allocations: 21.66 kB / 361.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.802e-05/0.1117, allocations: 29.7 kB / 362 MB, free: 9.324 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1117, allocations: 0 / 362 MB, free: 9.324 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001326/0.1118, allocations: 57.59 kB / 362 MB, free: 9.262 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.1118, allocations: 15.92 kB / 362 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.1119, allocations: 0 / 362 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.1119, allocations: 0 / 362 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.809e-05/0.1119, allocations: 4 kB / 362 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.112, allocations: 3.938 kB / 362 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.85e-05/0.112, allocations: 8 kB / 362.1 MB, free: 9.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-06/0.112, allocations: 0 / 362.1 MB, free: 9.23 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0001047/0.1121, allocations: 121.8 kB / 362.2 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.942e-05/0.1122, allocations: 45.55 kB / 362.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.581e-05/0.1122, allocations: 11.86 kB / 362.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1122, allocations: 0 / 362.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.1123, allocations: 3.938 kB / 362.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1123, allocations: 0 / 362.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001811/0.1125, allocations: 169.7 kB / 362.4 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1125, allocations: 0 / 362.4 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.397e-05/0.1125, allocations: 4 kB / 362.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.1125, allocations: 4 kB / 362.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-06/0.1125, allocations: 8.031 kB / 362.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.1125, allocations: 3.984 kB / 362.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.1126, allocations: 3.938 kB / 362.4 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001707/0.1127, allocations: 156.2 kB / 362.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.406e-05/0.1128, allocations: 93 kB / 362.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.1128, allocations: 3.938 kB / 362.7 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.912e-05/0.1129, allocations: 12.03 kB / 362.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.02e-05/0.113, allocations: 7.922 kB / 362.7 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.113, allocations: 0 / 362.7 MB, free: 8.488 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.476e-05/0.113, allocations: 114.8 kB / 362.8 MB, free: 8.379 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.113, allocations: 0 / 362.8 MB, free: 8.379 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002268/0.1133, allocations: 4 kB / 362.8 MB, free: 8.375 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0004586/0.1137, allocations: 0.6859 MB / 363.5 MB, free: 7.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001347/0.1139, allocations: 27.91 kB / 363.5 MB, free: 7.633 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1139, allocations: 0 / 363.5 MB, free: 7.633 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.005e-05/0.1139, allocations: 12 kB / 363.5 MB, free: 7.621 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003986/0.1144, allocations: 24.17 kB / 363.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001535/0.1159, allocations: 1.326 MB / 364.9 MB, free: 6.184 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000405/0.1163, allocations: 0.6885 MB / 365.6 MB, free: 5.469 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.186e-05/0.1164, allocations: 7.984 kB / 365.6 MB, free: 5.461 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.224e-05/0.1164, allocations: 15.44 kB / 365.6 MB, free: 5.445 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1164, allocations: 0 / 365.6 MB, free: 5.445 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02101/0.1375, allocations: 1.612 MB / 367.2 MB, free: 3.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.08/8.217, allocations: 5.984 kB / 367.2 MB, free: 3.93 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches