Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001311/0.001311, allocations: 103.5 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.001357/0.001357, 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.443/1.443, allocations: 227.4 MB / 246.3 MB, free: 9.055 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 66.52 kB / 306.4 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1247, allocations: 50.53 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.003349/0.1281, allocations: 1.671 MB / 358.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.1293, allocations: 0.5571 MB / 359.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.1295, allocations: 7.938 kB / 359.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.034e-05/0.1296, allocations: 7.922 kB / 359.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001404/0.1297, allocations: 7.938 kB / 359.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003729/0.1301, allocations: 63.33 kB / 359.2 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001255/0.1302, allocations: 55.84 kB / 359.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/0.1304, allocations: 23.91 kB / 359.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.1305, allocations: 23.92 kB / 359.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.033e-05/0.1306, allocations: 27.86 kB / 359.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.539e-05/0.1306, allocations: 0 / 359.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.074e-05/0.1307, allocations: 4 kB / 359.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.378e-05/0.1307, allocations: 23.91 kB / 359.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.204e-05/0.1308, allocations: 27.75 kB / 359.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001482/0.1309, allocations: 67.72 kB / 359.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.1309, allocations: 3.938 kB / 359.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1309, allocations: 4 kB / 359.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.131, allocations: 0 / 359.5 MB, free: 11.59 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005702/0.1315, allocations: 389.6 kB / 359.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.1316, allocations: 8.031 kB / 359.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.557e-05/0.1316, allocations: 34.75 kB / 359.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001631/0.1318, allocations: 20.73 kB / 359.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002279/0.132, allocations: 208 kB / 360.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.1321, allocations: 8.375 kB / 360.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.467e-05/0.1321, allocations: 7.938 kB / 360.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003339/0.1324, allocations: 130.7 kB / 360.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.1324, allocations: 4 kB / 360.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.567e-06/0.1325, allocations: 0 / 360.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1325, allocations: 0 / 360.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.842e-05/0.1326, allocations: 35.91 kB / 360.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003768/0.133, allocations: 287.4 kB / 360.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000139/0.1331, allocations: 98.28 kB / 360.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.325e-05/0.1332, allocations: 43.56 kB / 360.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.633e-05/0.1332, allocations: 3.984 kB / 360.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.1333, allocations: 38.56 kB / 360.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.253e-06/0.1333, allocations: 0 / 360.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003301/0.1336, allocations: 101.9 kB / 360.9 MB, free: 9.969 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.587e-05/0.1337, allocations: 136.4 kB / 361 MB, free: 9.805 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.1339, allocations: 150.3 kB / 361.1 MB, free: 9.641 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.1339, allocations: 29.7 kB / 361.2 MB, free: 9.605 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.974e-05/0.1339, allocations: 92.12 kB / 361.3 MB, free: 9.512 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.012e-05/0.134, allocations: 7.906 kB / 361.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-05/0.134, allocations: 17.72 kB / 361.3 MB, free: 9.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.1341, allocations: 322.9 kB / 361.6 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.274e-05/0.1342, allocations: 11.98 kB / 361.6 MB, free: 9.145 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.604e-05/0.1343, allocations: 48.28 kB / 361.7 MB, free: 9.082 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000109/0.1344, allocations: 56.22 kB / 361.7 MB, free: 9.012 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1344, allocations: 0 / 361.7 MB, free: 9.012 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001717/0.1346, allocations: 89.45 kB / 361.8 MB, free: 8.918 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.1346, allocations: 4 kB / 361.8 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.1346, allocations: 8.156 kB / 361.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.1346, allocations: 0 / 361.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.619e-05/0.1347, allocations: 12.11 kB / 361.8 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.1347, allocations: 11.94 kB / 361.8 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.203e-05/0.1348, allocations: 11.92 kB / 361.8 MB, free: 8.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.1348, allocations: 0 / 361.8 MB, free: 8.871 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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.394e-05/0.1349, allocations: 126.8 kB / 362 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.67e-05/0.135, allocations: 61.5 kB / 362 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.656e-05/0.135, allocations: 19.89 kB / 362 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.1351, allocations: 0 / 362 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.1351, allocations: 11.92 kB / 362.1 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.1351, allocations: 0 / 362.1 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001837/0.1353, allocations: 169.7 kB / 362.2 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.1353, allocations: 4 kB / 362.2 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.176e-05/0.1354, allocations: 15.92 kB / 362.2 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.1354, allocations: 7.938 kB / 362.2 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.1354, allocations: 4 kB / 362.3 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.1354, allocations: 0 / 362.3 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.1354, allocations: 11.94 kB / 362.3 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002137/0.1356, allocations: 189.9 kB / 362.4 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.483e-05/0.1357, allocations: 97 kB / 362.5 MB, free: 8.055 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.591e-05/0.1357, allocations: 0 / 362.5 MB, free: 8.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.484e-05/0.1358, allocations: 12 kB / 362.6 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.981e-05/0.1358, allocations: 3.938 kB / 362.6 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.1359, allocations: 4 kB / 362.6 MB, free: 8.035 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.352e-05/0.1359, allocations: 114.8 kB / 362.7 MB, free: 7.926 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1359, allocations: 0 / 362.7 MB, free: 7.926 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002389/0.1362, allocations: 8 kB / 362.7 MB, free: 7.918 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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.0005052/0.1367, allocations: 0.7343 MB / 363.4 MB, free: 7.148 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001552/0.1369, allocations: 43.86 kB / 363.5 MB, free: 7.105 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1369, allocations: 4.312 kB / 363.5 MB, free: 7.102 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.387e-05/0.1369, allocations: 11.98 kB / 363.5 MB, free: 7.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004348/0.1374, allocations: 31.95 kB / 363.5 MB, free: 7.059 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001534/0.1389, allocations: 1.491 MB / 365 MB, free: 5.449 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.1392, allocations: 0.6965 MB / 365.7 MB, free: 4.727 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.165e-05/0.1393, allocations: 12.06 kB / 365.7 MB, free: 4.715 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.645e-05/0.1393, allocations: 23.42 kB / 365.7 MB, free: 4.691 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1393, allocations: 0 / 365.7 MB, free: 4.691 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01906/0.1584, allocations: 1.674 MB / 367.4 MB, free: 3.113 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003068/0.1587, allocations: 210.4 kB / 367.6 MB, free: 2.852 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.788/1.947, allocations: 0 / 367.6 MB, free: 2.852 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches