Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.HoldWithDAeffects1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008959/0.000896, allocations: 95.94 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008397/0.0008397, allocations: 206.2 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 227.7 MB / 246.8 MB, free: 11.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002418/0.0002418, allocations: 4 kB / 307.8 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1135, allocations: 51.53 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.00232/0.1159, allocations: 1.57 MB / 360.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.1172, allocations: 0.6663 MB / 361.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001713/0.1174, allocations: 4 kB / 361.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.1176, allocations: 15.86 kB / 361.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001296/0.1177, allocations: 19.84 kB / 361.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003891/0.1181, allocations: 107.3 kB / 361.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001577/0.1183, allocations: 135.6 kB / 361.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.1184, allocations: 61.69 kB / 361.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.1186, allocations: 43.72 kB / 362 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.26e-05/0.1186, allocations: 51.59 kB / 362 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.64e-05/0.1187, allocations: 4 kB / 362 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.365e-05/0.1187, allocations: 8 kB / 362 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.896e-05/0.1188, allocations: 23.86 kB / 362.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.565e-05/0.1188, allocations: 81.25 kB / 362.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001518/0.119, allocations: 127.7 kB / 362.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.119, allocations: 0 / 362.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.119, allocations: 0 / 362.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.119, allocations: 4 kB / 362.3 MB, free: 10.26 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.000522/0.1196, allocations: 435 kB / 362.7 MB, free: 9.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.1196, allocations: 8.031 kB / 362.7 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.139e-05/0.1197, allocations: 42.73 kB / 362.7 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001522/0.1198, allocations: 32.64 kB / 362.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002446/0.1201, allocations: 240 kB / 363 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.1201, allocations: 11.94 kB / 363 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.778e-05/0.1201, allocations: 8 kB / 363 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005429/0.1207, allocations: 291.7 kB / 363.3 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.1207, allocations: 7.938 kB / 363.3 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.1207, allocations: 0 / 363.3 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.1207, allocations: 4 kB / 363.3 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002433/0.121, allocations: 87.83 kB / 363.4 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004281/0.1214, allocations: 431.4 kB / 363.8 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004503/0.1219, allocations: 310 kB / 364.1 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001972/0.1221, allocations: 124.3 kB / 364.3 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.1221, allocations: 0 / 364.3 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.1221, allocations: 42.48 kB / 364.3 MB, free: 7.953 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 3.186e-06/0.1221, allocations: 0 / 364.3 MB, free: 7.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005548/0.1227, allocations: 245.5 kB / 364.5 MB, free: 7.707 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.1228, allocations: 191.9 kB / 364.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001669/0.123, allocations: 186.3 kB / 364.9 MB, free: 7.281 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.123, allocations: 29.7 kB / 364.9 MB, free: 7.246 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.824e-05/0.1231, allocations: 100 kB / 365 MB, free: 7.145 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.876e-05/0.1231, allocations: 11.98 kB / 365 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.028e-05/0.1232, allocations: 21.7 kB / 365.1 MB, free: 7.105 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1233, allocations: 330.9 kB / 365.4 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.665e-05/0.1233, allocations: 27.89 kB / 365.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/0.1235, allocations: 129.2 kB / 365.5 MB, free: 6.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.1237, allocations: 169.5 kB / 365.7 MB, free: 6.355 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1237, allocations: 0 / 365.7 MB, free: 6.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002599/0.124, allocations: 165.1 kB / 365.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.124, allocations: 11.94 kB / 365.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.124, allocations: 4 kB / 365.9 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.124, allocations: 4 kB / 365.9 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.1241, allocations: 40.42 kB / 365.9 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.1242, allocations: 11.94 kB / 365.9 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.135e-05/0.1243, allocations: 11.94 kB / 366 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.1243, allocations: 11.98 kB / 366 MB, free: 6.094 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (17): * Single equations (assignments): 17 * 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.0001173/0.1244, allocations: 137.7 kB / 366.1 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002763/0.1247, allocations: 153.3 kB / 366.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.843e-05/0.1248, allocations: 29.39 kB / 366.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.1248, allocations: 0 / 366.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.1248, allocations: 4 kB / 366.3 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1248, allocations: 0 / 366.3 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002648/0.1251, allocations: 217.5 kB / 366.5 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.1251, allocations: 480 / 366.5 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.1252, allocations: 39.92 kB / 366.5 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.1252, allocations: 7.922 kB / 366.5 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.1252, allocations: 12.03 kB / 366.6 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1252, allocations: 0 / 366.6 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.1253, allocations: 7.938 kB / 366.6 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004067/0.1257, allocations: 369 kB / 366.9 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.825e-05/0.1257, allocations: 108.8 kB / 367 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.853e-05/0.1258, allocations: 12 kB / 367 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.1259, allocations: 23.92 kB / 367.1 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.728e-05/0.126, allocations: 4 kB / 367.1 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.266e-06/0.126, allocations: 4 kB / 367.1 MB, free: 4.879 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001086/0.1261, allocations: 136.4 kB / 367.2 MB, free: 4.746 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1261, allocations: 0 / 367.2 MB, free: 4.746 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003015/0.1264, allocations: 20 kB / 367.2 MB, free: 4.727 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.0007202/0.1271, allocations: 0.908 MB / 368.1 MB, free: 3.785 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002729/0.1274, allocations: 116.7 kB / 368.2 MB, free: 3.672 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1274, allocations: 4.062 kB / 368.2 MB, free: 3.668 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.775e-05/0.1275, allocations: 15.98 kB / 368.3 MB, free: 3.652 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006369/0.1281, allocations: 106.5 kB / 368.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002676/0.1308, allocations: 2.139 MB / 370.5 MB, free: 1.207 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003999/0.1312, allocations: 0.7322 MB / 371.2 MB, free: 460 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.775e-05/0.1313, allocations: 13.55 kB / 371.3 MB, free: 448 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.096e-05/0.1314, allocations: 39.89 kB / 371.3 MB, free: 408 kB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1314, allocations: 4 kB / 371.3 MB, free: 404 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1714/0.3028, allocations: 3.043 MB / 374.3 MB, free: 18.64 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/0.303, allocations: 221.5 kB / 374.6 MB, free: 18.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.766/2.069, allocations: 3.938 kB / 374.6 MB, free: 18.38 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects1/HoldWithDAeffects1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches