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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001296/0.001296, allocations: 97.12 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.001701/0.001701, allocations: 206.3 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.593/1.593, allocations: 227.8 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002299/0.0002301, allocations: 4 kB / 307.7 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1125, allocations: 51.54 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.002114/0.1146, allocations: 1.562 MB / 360.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.1158, allocations: 0.6664 MB / 361.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.116, allocations: 11.94 kB / 361.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.1161, allocations: 15.8 kB / 361.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.1162, allocations: 23.84 kB / 361.6 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003852/0.1166, allocations: 99.8 kB / 361.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001851/0.1168, allocations: 131.6 kB / 361.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.117, allocations: 61.7 kB / 361.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001492/0.1171, allocations: 47.7 kB / 361.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.962e-05/0.1172, allocations: 43.67 kB / 361.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.359e-05/0.1173, allocations: 4 kB / 361.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.514e-05/0.1173, allocations: 4 kB / 361.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.462e-05/0.1174, allocations: 19.92 kB / 362 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.74e-05/0.1175, allocations: 89.23 kB / 362 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001722/0.1177, allocations: 127.4 kB / 362.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1177, allocations: 0 / 362.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1177, allocations: 4 kB / 362.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.1177, allocations: 0 / 362.2 MB, free: 10.37 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.000572/0.1183, allocations: 435.3 kB / 362.6 MB, free: 9.898 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.1183, allocations: 8.031 kB / 362.6 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.1185, allocations: 40.64 kB / 362.6 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002827/0.1188, allocations: 232 kB / 362.9 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.1188, allocations: 16.06 kB / 362.9 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.863e-05/0.1188, allocations: 8 kB / 362.9 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005923/0.1194, allocations: 296.2 kB / 363.2 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.1194, allocations: 0 / 363.2 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.1195, allocations: 4 kB / 363.2 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.1195, allocations: 4 kB / 363.2 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002368/0.1197, allocations: 91.88 kB / 363.3 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004682/0.1202, allocations: 431.3 kB / 363.7 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004841/0.1207, allocations: 314.1 kB / 364 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001942/0.1209, allocations: 108.4 kB / 364.1 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.1209, allocations: 12 kB / 364.1 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.121, allocations: 38.5 kB / 364.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.343e-06/0.121, allocations: 0 / 364.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005734/0.1215, allocations: 237.2 kB / 364.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.1217, allocations: 204.2 kB / 364.6 MB, free: 7.633 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/0.1219, allocations: 190.2 kB / 364.8 MB, free: 7.434 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.1219, allocations: 29.7 kB / 364.8 MB, free: 7.398 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.714e-05/0.122, allocations: 96.52 kB / 364.9 MB, free: 7.297 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.772e-05/0.122, allocations: 23.73 kB / 364.9 MB, free: 7.273 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.31e-05/0.122, allocations: 25.7 kB / 365 MB, free: 7.242 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.1221, allocations: 322.8 kB / 365.3 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.705e-05/0.1222, allocations: 27.98 kB / 365.3 MB, free: 6.891 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.1224, allocations: 142.2 kB / 365.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002056/0.1226, allocations: 174.4 kB / 365.6 MB, free: 6.477 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1226, allocations: 0 / 365.6 MB, free: 6.477 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002978/0.1229, allocations: 181.3 kB / 365.8 MB, free: 6.293 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.1229, allocations: 8 kB / 365.8 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.1229, allocations: 4 kB / 365.8 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.123, allocations: 4 kB / 365.8 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.1231, allocations: 52.42 kB / 365.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.1231, allocations: 4 kB / 365.9 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.998e-05/0.1232, allocations: 19.94 kB / 365.9 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.1232, allocations: 8 kB / 365.9 MB, free: 6.195 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.0001153/0.1234, allocations: 145.6 kB / 366 MB, free: 6.043 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003584/0.1237, allocations: 153.8 kB / 366.2 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.783e-05/0.1238, allocations: 25.39 kB / 366.2 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.1238, allocations: 4 kB / 366.2 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1238, allocations: 0 / 366.2 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.1238, allocations: 7.938 kB / 366.2 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000261/0.1241, allocations: 217.5 kB / 366.4 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.1241, allocations: 0 / 366.4 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.1242, allocations: 43.92 kB / 366.5 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/0.1243, allocations: 0 / 366.5 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.1243, allocations: 12.02 kB / 366.5 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.1243, allocations: 0 / 366.5 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1243, allocations: 4 kB / 366.5 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004361/0.1248, allocations: 377 kB / 366.9 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.02e-05/0.1249, allocations: 108.8 kB / 367 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.113e-05/0.1249, allocations: 8 kB / 367 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.1251, allocations: 11.98 kB / 367 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.435e-05/0.1251, allocations: 11.94 kB / 367 MB, free: 4.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.1251, allocations: 11.98 kB / 367 MB, free: 4.969 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001114/0.1252, allocations: 128.4 kB / 367.1 MB, free: 4.844 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1252, allocations: 0 / 367.1 MB, free: 4.844 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000333/0.1256, allocations: 24 kB / 367.1 MB, free: 4.82 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.0001311/0.1257, allocations: 107.1 kB / 367.3 MB, free: 4.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003115/0.126, allocations: 127.7 kB / 367.4 MB, free: 4.582 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.1261, allocations: 3.938 kB / 367.4 MB, free: 4.578 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.29e-05/0.1261, allocations: 21.05 kB / 367.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006942/0.1268, allocations: 107.2 kB / 367.5 MB, free: 4.457 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000686/0.1275, allocations: 385.5 kB / 367.9 MB, free: 4.039 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004832/0.128, allocations: 0.7283 MB / 368.6 MB, free: 3.285 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.149e-05/0.1281, allocations: 21.72 kB / 368.6 MB, free: 3.266 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.05e-05/0.1281, allocations: 19.42 kB / 368.7 MB, free: 3.25 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1281, allocations: 0 / 368.7 MB, free: 3.25 MB / 302.1 MB Notification: Performance of Templates: time 0.005006/0.1332, allocations: 1.599 MB / 370.3 MB, free: 1.672 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile (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 & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects2/HoldWithDAeffects2.csv","/var/lib/jenkins/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