Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.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.HoldWithDAeffects2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001148/0.001147, allocations: 116.2 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001155, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.482/1.482, allocations: 227.4 MB / 246.4 MB, free: 9.105 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001087/0.001087, allocations: 67.98 kB / 306.6 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1121, allocations: 50.53 MB / 357.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.00457/0.1167, allocations: 1.916 MB / 359 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001861/0.1186, allocations: 0.678 MB / 359.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002794/0.1189, allocations: 7.938 kB / 359.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002229/0.1192, allocations: 15.86 kB / 359.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001911/0.1194, allocations: 15.86 kB / 359.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005764/0.12, allocations: 107.1 kB / 359.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002822/0.1203, allocations: 151.5 kB / 360 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.1205, allocations: 65.69 kB / 360 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001998/0.1207, allocations: 55.78 kB / 360.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.1209, allocations: 59.58 kB / 360.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.055e-05/0.1209, allocations: 16 kB / 360.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.404e-05/0.121, allocations: 12 kB / 360.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.311e-05/0.121, allocations: 27.92 kB / 360.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.737e-05/0.1211, allocations: 67.53 kB / 360.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002323/0.1214, allocations: 135.8 kB / 360.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1214, allocations: 0 / 360.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1214, allocations: 0 / 360.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.1214, allocations: 0 / 360.4 MB, free: 10.76 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0007235/0.1221, allocations: 473.2 kB / 360.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.1222, allocations: 8.031 kB / 360.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.276e-05/0.1222, allocations: 42.75 kB / 360.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002106/0.1225, allocations: 28.73 kB / 360.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000314/0.1228, allocations: 232 kB / 361.2 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.1228, allocations: 11.94 kB / 361.2 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.17e-05/0.1228, allocations: 8 kB / 361.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006472/0.1235, allocations: 288.1 kB / 361.5 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.1235, allocations: 4 kB / 361.5 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.1236, allocations: 0 / 361.5 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.1236, allocations: 8 kB / 361.5 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002207/0.1238, allocations: 79.81 kB / 361.6 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005907/0.1244, allocations: 427.4 kB / 362 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004842/0.1249, allocations: 298.1 kB / 362.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002042/0.1251, allocations: 112.2 kB / 362.4 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.273e-05/0.1252, allocations: 4 kB / 362.4 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/0.1252, allocations: 42.55 kB / 362.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 2.906e-06/0.1252, allocations: 0 / 362.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005932/0.1258, allocations: 225.1 kB / 362.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001828/0.126, allocations: 200.3 kB / 362.8 MB, free: 8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002123/0.1262, allocations: 186.2 kB / 363 MB, free: 7.805 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.603e-05/0.1263, allocations: 29.7 kB / 363.1 MB, free: 7.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.907e-05/0.1264, allocations: 100.5 kB / 363.2 MB, free: 7.664 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.046e-05/0.1264, allocations: 15.84 kB / 363.2 MB, free: 7.648 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.807e-05/0.1265, allocations: 37.7 kB / 363.2 MB, free: 7.605 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1266, allocations: 326.8 kB / 363.5 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.645e-05/0.1267, allocations: 23.98 kB / 363.5 MB, free: 7.254 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001703/0.1269, allocations: 145.9 kB / 363.7 MB, free: 7.059 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002339/0.1271, allocations: 174.4 kB / 363.9 MB, free: 6.836 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1271, allocations: 0 / 363.9 MB, free: 6.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002864/0.1274, allocations: 173.4 kB / 364 MB, free: 6.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.1275, allocations: 8 kB / 364 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.1275, allocations: 4 kB / 364 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.1275, allocations: 4 kB / 364 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.1276, allocations: 39.92 kB / 364.1 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.1277, allocations: 11.88 kB / 364.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001091/0.1278, allocations: 19.89 kB / 364.1 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.1278, allocations: 8.344 kB / 364.1 MB, free: 6.566 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0001287/0.1279, allocations: 145.7 kB / 364.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002727/0.1282, allocations: 145.3 kB / 364.4 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.909e-05/0.1283, allocations: 17.41 kB / 364.4 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.1283, allocations: 4 kB / 364.4 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.1283, allocations: 3.938 kB / 364.4 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1283, allocations: 3.984 kB / 364.4 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002697/0.1286, allocations: 217.5 kB / 364.6 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1286, allocations: 8.031 kB / 364.7 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.1287, allocations: 35.97 kB / 364.7 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.1287, allocations: 3.938 kB / 364.7 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.1288, allocations: 12 kB / 364.7 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.1288, allocations: 3.938 kB / 364.7 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.1288, allocations: 7.938 kB / 364.7 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004055/0.1292, allocations: 359.9 kB / 365.1 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.838e-05/0.1293, allocations: 108.8 kB / 365.2 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.898e-05/0.1293, allocations: 8 kB / 365.2 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/0.1295, allocations: 15.98 kB / 365.2 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.622e-05/0.1295, allocations: 11.88 kB / 365.2 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.1296, allocations: 4 kB / 365.2 MB, free: 5.367 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001154/0.1297, allocations: 136.4 kB / 365.3 MB, free: 5.234 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1297, allocations: 0 / 365.3 MB, free: 5.234 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003522/0.13, allocations: 20 kB / 365.4 MB, free: 5.215 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.0009294/0.131, allocations: 0.9522 MB / 366.3 MB, free: 4.227 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003221/0.1313, allocations: 128.3 kB / 366.4 MB, free: 4.102 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1313, allocations: 0 / 366.4 MB, free: 4.102 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.651e-05/0.1314, allocations: 15.92 kB / 366.5 MB, free: 4.086 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007288/0.1321, allocations: 112.8 kB / 366.6 MB, free: 3.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001636/0.1338, allocations: 0.9914 MB / 367.6 MB, free: 2.867 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.1341, allocations: 0.7206 MB / 368.3 MB, free: 2.121 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.473e-05/0.1342, allocations: 25.53 kB / 368.3 MB, free: 2.098 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.348e-05/0.1343, allocations: 43.42 kB / 368.3 MB, free: 2.059 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1343, allocations: 192 / 368.3 MB, free: 2.059 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2663/0.4006, allocations: 3.295 MB / 371.6 MB, free: 20.08 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000243/0.4009, allocations: 226.3 kB / 371.9 MB, free: 19.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.07/2.47, allocations: 1.641 kB / 371.9 MB, free: 19.82 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects2/HoldWithDAeffects2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches