Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|triggeredSampler.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|triggeredSampler.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001116/0.001116, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001269/0.00127, allocations: 199.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.506/1.506, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 54.75 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1171, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003229/0.1204, allocations: 1.644 MB / 360.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.1216, allocations: 0.5727 MB / 361.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.1217, allocations: 7.938 kB / 361.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.982e-05/0.1218, allocations: 3.938 kB / 361.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.1219, allocations: 15.86 kB / 361.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003478/0.1223, allocations: 71.73 kB / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001423/0.1224, allocations: 55.84 kB / 361.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.1226, allocations: 40.12 kB / 361.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.1227, allocations: 31.92 kB / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.012e-05/0.1228, allocations: 31.8 kB / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.145e-05/0.1229, allocations: 4 kB / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.566e-05/0.1229, allocations: 8 kB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.183e-05/0.123, allocations: 23.91 kB / 361.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.554e-05/0.1231, allocations: 35.73 kB / 361.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000168/0.1232, allocations: 83.64 kB / 361.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1233, allocations: 8 kB / 361.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1233, allocations: 0 / 361.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.1233, allocations: 0 / 361.5 MB, free: 10.69 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005613/0.1238, allocations: 395 kB / 361.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.1239, allocations: 11.97 kB / 361.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000225/0.1241, allocations: 24.73 kB / 362 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002951/0.1244, allocations: 204.2 kB / 362.2 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.448e-06/0.1245, allocations: 12.38 kB / 362.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.021e-05/0.1245, allocations: 8.125 kB / 362.2 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003303/0.1248, allocations: 140.9 kB / 362.3 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.1248, allocations: 3.938 kB / 362.3 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.1249, allocations: 4 kB / 362.3 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.1249, allocations: 4 kB / 362.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001084/0.125, allocations: 31.98 kB / 362.4 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005483/0.1255, allocations: 301.5 kB / 362.7 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000252/0.1258, allocations: 158.3 kB / 362.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.1259, allocations: 45.72 kB / 362.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.1259, allocations: 4.062 kB / 362.9 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001203/0.1261, allocations: 67.39 kB / 362.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.1261, allocations: 0 / 362.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003644/0.1265, allocations: 125.4 kB / 363.1 MB, free: 8.969 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.813e-05/0.1266, allocations: 81.09 kB / 363.1 MB, free: 8.871 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.1267, allocations: 149.7 kB / 363.3 MB, free: 8.715 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.646e-05/0.1268, allocations: 29.7 kB / 363.3 MB, free: 8.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.851e-05/0.1269, allocations: 92.12 kB / 363.4 MB, free: 8.586 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.509e-05/0.1269, allocations: 15.81 kB / 363.4 MB, free: 8.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.667e-05/0.1269, allocations: 25.7 kB / 363.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1271, allocations: 326.8 kB / 363.8 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.399e-05/0.1272, allocations: 20 kB / 363.8 MB, free: 8.191 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.874e-05/0.1273, allocations: 72.94 kB / 363.8 MB, free: 8.102 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001474/0.1274, allocations: 81.08 kB / 363.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.1274, allocations: 0 / 363.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000211/0.1276, allocations: 113.5 kB / 364 MB, free: 7.887 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.1277, allocations: 8.156 kB / 364 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.1277, allocations: 3.984 kB / 364 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.1277, allocations: 4 kB / 364.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.373e-05/0.1278, allocations: 8 kB / 364.1 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.499e-05/0.1278, allocations: 11.88 kB / 364.1 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.872e-05/0.1279, allocations: 11.98 kB / 364.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.1279, allocations: 4 kB / 364.1 MB, free: 7.836 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler.y,$PRE.triggeredSampler.y,clockToTrigger.y3,$PRE.clockToTrigger.y3,triggeredSampler.trigger,$whenCondition1,$CLKPRE.clockToTrigger.y2,clockToTrigger.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.0001238/0.128, allocations: 117.8 kB / 364.2 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.339e-05/0.1281, allocations: 61.5 kB / 364.3 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.918e-05/0.1282, allocations: 16.25 kB / 364.3 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.1282, allocations: 4 kB / 364.3 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.1282, allocations: 3.938 kB / 364.3 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1282, allocations: 3.984 kB / 364.3 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004307/0.1286, allocations: 338.8 kB / 364.6 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1287, allocations: 0 / 364.6 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.705e-05/0.1287, allocations: 20 kB / 364.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.1287, allocations: 3.938 kB / 364.6 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.1288, allocations: 7.984 kB / 364.7 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1288, allocations: 4 kB / 364.7 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1288, allocations: 3.938 kB / 364.7 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002605/0.129, allocations: 192.2 kB / 364.8 MB, free: 6.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.448e-05/0.1292, allocations: 100.9 kB / 364.9 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.577e-05/0.1292, allocations: 7.984 kB / 365 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.479e-05/0.1293, allocations: 4 kB / 365 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.515e-05/0.1293, allocations: 4.234 kB / 365 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-06/0.1293, allocations: 4 kB / 365 MB, free: 6.844 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.007e-05/0.1294, allocations: 114.2 kB / 365.1 MB, free: 6.734 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1294, allocations: 0 / 365.1 MB, free: 6.734 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002443/0.1297, allocations: 15.91 kB / 365.1 MB, free: 6.719 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: 5 (clockToTrigger.y2,triggeredSampler.trigger,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001498/0.1298, allocations: 111.2 kB / 365.2 MB, free: 6.602 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002354/0.1301, allocations: 72.03 kB / 365.3 MB, free: 6.531 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.1301, allocations: 0 / 365.3 MB, free: 6.531 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.314e-05/0.1302, allocations: 23.92 kB / 365.3 MB, free: 6.508 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003472/0.1305, allocations: 23.97 kB / 365.3 MB, free: 6.484 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003789/0.1309, allocations: 208.2 kB / 365.5 MB, free: 6.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002881/0.1312, allocations: 0.7003 MB / 366.2 MB, free: 5.523 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.542e-05/0.1313, allocations: 16.42 kB / 366.2 MB, free: 5.504 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.231e-05/0.1313, allocations: 11.44 kB / 366.2 MB, free: 5.496 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1313, allocations: 0 / 366.2 MB, free: 5.496 MB / 302.1 MB Notification: Performance of Templates: time 0.003134/0.1344, allocations: 0.7864 MB / 367 MB, free: 4.723 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches