Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001692/0.001692, allocations: 117.1 kB / 17.83 MB, free: 5.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001664/0.001664, allocations: 208.3 kB / 18.79 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.578/1.578, allocations: 230.4 MB / 250 MB, free: 9.094 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 75.81 kB / 367.3 MB, free: 7.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3889/0.3908, allocations: 53.3 MB / 420.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.004536/0.3953, allocations: 1.926 MB / 422.6 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002876/0.3982, allocations: 1.317 MB / 423.9 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002026/0.3984, allocations: 3.938 kB / 423.9 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003656/0.3988, allocations: 67.67 kB / 424 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004637/0.3992, allocations: 135.4 kB / 424.1 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008322/0.4001, allocations: 238.8 kB / 424.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003463/0.4004, allocations: 183.5 kB / 424.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.4006, allocations: 21.55 kB / 424.5 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001532/0.4007, allocations: 79.69 kB / 424.6 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001543/0.4009, allocations: 91.55 kB / 424.7 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.742e-05/0.4009, allocations: 8 kB / 424.7 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001955/0.4011, allocations: 67.95 kB / 424.8 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.4012, allocations: 59.81 kB / 424.8 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.4013, allocations: 87.36 kB / 424.9 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004882/0.4018, allocations: 250.8 kB / 425.2 MB, free: 3.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.4018, allocations: 0 / 425.2 MB, free: 3.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.4018, allocations: 0 / 425.2 MB, free: 3.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.4018, allocations: 3.938 kB / 425.2 MB, free: 3.836 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001035/0.4029, allocations: 0.5416 MB / 425.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.4029, allocations: 8.031 kB / 425.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.403, allocations: 32.69 kB / 425.7 MB, free: 3.203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005364/0.4036, allocations: 307.7 kB / 426 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.4036, allocations: 4.375 kB / 426 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.414e-05/0.4036, allocations: 12.12 kB / 426.1 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004356/0.4041, allocations: 172.4 kB / 426.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.4041, allocations: 0 / 426.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.4041, allocations: 0 / 426.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.4041, allocations: 4 kB / 426.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001352/0.4042, allocations: 43.91 kB / 426.3 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006708/0.4049, allocations: 470.6 kB / 426.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003055/0.4052, allocations: 138.5 kB / 426.9 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.4053, allocations: 59.41 kB / 426.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.567e-05/0.4053, allocations: 7.984 kB / 426.9 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002056/0.4055, allocations: 105 kB / 427 MB, free: 1.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.203e-06/0.4055, allocations: 0 / 427 MB, free: 1.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004605/0.406, allocations: 169.4 kB / 427.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001468/0.4062, allocations: 187.9 kB / 427.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004391/0.4066, allocations: 339 kB / 427.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.4066, allocations: 26.08 kB / 427.7 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.4067, allocations: 144.2 kB / 427.9 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.238e-05/0.4068, allocations: 19.97 kB / 427.9 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.098e-05/0.4068, allocations: 33.7 kB / 427.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001989/0.407, allocations: 338.8 kB / 428.3 MB, free: 400 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.238e-05/0.4071, allocations: 23.98 kB / 428.3 MB, free: 376 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.4073, allocations: 107.6 kB / 428.4 MB, free: 240 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001801/0.4074, allocations: 93.08 kB / 428.5 MB, free: 128 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.4074, allocations: 4 kB / 428.5 MB, free: 124 kB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002855/0.4077, allocations: 145.7 kB / 428.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.4077, allocations: 4 kB / 428.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.4078, allocations: 0 / 428.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.4078, allocations: 4 kB / 428.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.4079, allocations: 19.98 kB / 428.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.512e-05/0.4079, allocations: 7.938 kB / 428.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.939e-05/0.408, allocations: 16.05 kB / 428.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.408, allocations: 8 kB / 428.7 MB, free: 15.91 MB / 350.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: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001773/0.4082, allocations: 157.7 kB / 428.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.4083, allocations: 77.48 kB / 428.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.472e-05/0.4084, allocations: 29.73 kB / 428.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.4084, allocations: 0 / 428.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/0.4084, allocations: 4 kB / 429 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.4084, allocations: 3.938 kB / 429 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002735/0.4087, allocations: 253.6 kB / 429.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.4087, allocations: 0 / 429.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.095e-05/0.4087, allocations: 12 kB / 429.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.4087, allocations: 3.984 kB / 429.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.4088, allocations: 4 kB / 429.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.4088, allocations: 0 / 429.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.4088, allocations: 7.938 kB / 429.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003484/0.4091, allocations: 187.4 kB / 429.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.4093, allocations: 116.9 kB / 429.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.679e-05/0.4093, allocations: 4 kB / 429.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.806e-05/0.4094, allocations: 8 kB / 429.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.339e-05/0.4094, allocations: 11.92 kB / 429.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.874e-05/0.4094, allocations: 4 kB / 429.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002624/0.4097, allocations: 253.9 kB / 429.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4097, allocations: 4 kB / 429.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002881/0.41, allocations: 35.94 kB / 429.8 MB, free: 14.65 MB / 350.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: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00174/0.4117, allocations: 431.4 kB / 430.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002776/0.412, allocations: 79.89 kB / 430.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.412, allocations: 320 / 430.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.4121, allocations: 39.92 kB / 430.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004804/0.4126, allocations: 68.34 kB / 430.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007816/0.4134, allocations: 394.6 kB / 430.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004387/0.4138, allocations: 0.744 MB / 431.6 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001018/0.4139, allocations: 33.5 kB / 431.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.781e-05/0.414, allocations: 23.44 kB / 431.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.414, allocations: 0 / 431.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of Templates: time 0.008221/0.4222, allocations: 2.974 MB / 434.6 MB, free: 9.996 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches