Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001418/0.001419, allocations: 106.9 kB / 17.74 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001231/0.001232, allocations: 180.5 kB / 18.66 MB, free: 4.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001052/0.001052, allocations: 43.92 kB / 352 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.3005, allocations: 49.44 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.00366/0.3042, allocations: 1.889 MB / 403.3 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.3063, allocations: 1.157 MB / 404.4 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.3065, allocations: 3.938 kB / 404.5 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003506/0.3069, allocations: 75.64 kB / 404.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003298/0.3072, allocations: 91.59 kB / 404.6 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008075/0.3081, allocations: 251.6 kB / 404.9 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002658/0.3083, allocations: 171.5 kB / 405 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.3085, allocations: 37.53 kB / 405.1 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.3086, allocations: 79.62 kB / 405.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000126/0.3087, allocations: 87.61 kB / 405.2 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.912e-05/0.3088, allocations: 8 kB / 405.2 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001848/0.309, allocations: 63.97 kB / 405.3 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.295e-05/0.3091, allocations: 55.81 kB / 405.4 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.176e-05/0.3092, allocations: 79.42 kB / 405.4 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003755/0.3096, allocations: 243.1 kB / 405.7 MB, free: 4.609 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3096, allocations: 4 kB / 405.7 MB, free: 4.605 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3096, allocations: 0 / 405.7 MB, free: 4.605 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.3096, allocations: 3.938 kB / 405.7 MB, free: 4.602 MB / 318.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.0007648/0.3104, allocations: 0.5362 MB / 406.2 MB, free: 4.012 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.3104, allocations: 15.89 kB / 406.2 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.839e-05/0.3105, allocations: 20.66 kB / 406.2 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004169/0.3109, allocations: 295.6 kB / 406.5 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.3109, allocations: 4.375 kB / 406.5 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.949e-05/0.311, allocations: 12.12 kB / 406.6 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003703/0.3114, allocations: 172.4 kB / 406.7 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.3114, allocations: 0 / 406.7 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.08e-05/0.3114, allocations: 8 kB / 406.7 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.3114, allocations: 4 kB / 406.7 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001322/0.3115, allocations: 39.92 kB / 406.8 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006035/0.3122, allocations: 478.4 kB / 407.2 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002846/0.3125, allocations: 138.5 kB / 407.4 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.3126, allocations: 67.41 kB / 407.4 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.989e-05/0.3126, allocations: 0 / 407.4 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001946/0.3128, allocations: 101 kB / 407.5 MB, free: 2.488 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.3129, allocations: 0 / 407.5 MB, free: 2.488 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004557/0.3133, allocations: 169.2 kB / 407.7 MB, free: 2.316 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.3135, allocations: 187.9 kB / 407.9 MB, free: 2.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003544/0.3138, allocations: 330.7 kB / 408.2 MB, free: 1.758 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.3138, allocations: 26.08 kB / 408.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.451e-05/0.3139, allocations: 132.4 kB / 408.4 MB, free: 1.59 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.706e-05/0.314, allocations: 19.72 kB / 408.4 MB, free: 1.57 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.514e-05/0.314, allocations: 33.7 kB / 408.4 MB, free: 1.531 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.3142, allocations: 334.8 kB / 408.7 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.496e-05/0.3143, allocations: 27.98 kB / 408.8 MB, free: 1.168 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.3144, allocations: 106.3 kB / 408.9 MB, free: 1.039 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/0.3146, allocations: 93.08 kB / 409 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.3146, allocations: 4 kB / 409 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002508/0.3149, allocations: 137.3 kB / 409.1 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.3149, allocations: 8 kB / 409.1 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.3149, allocations: 3.984 kB / 409.1 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.3149, allocations: 4 kB / 409.1 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.3151, allocations: 23.92 kB / 409.1 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.3151, allocations: 4 kB / 409.1 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.642e-05/0.3152, allocations: 19.94 kB / 409.2 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.3152, allocations: 8 kB / 409.2 MB, free: 0.7148 MB / 318.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.0001471/0.3153, allocations: 162.7 kB / 409.3 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.169e-05/0.3154, allocations: 73.36 kB / 409.4 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.625e-05/0.3155, allocations: 25.7 kB / 409.4 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3155, allocations: 7.938 kB / 409.4 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3155, allocations: 0 / 409.4 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.3155, allocations: 7.938 kB / 409.4 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002442/0.3158, allocations: 249.7 kB / 409.7 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.3158, allocations: 0 / 409.7 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.387e-05/0.3159, allocations: 15.98 kB / 409.7 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.3159, allocations: 4 kB / 409.7 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.3159, allocations: 0 / 409.7 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.98e-06/0.3159, allocations: 7.938 kB / 409.7 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3159, allocations: 0 / 409.7 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003057/0.3162, allocations: 187.2 kB / 409.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.3164, allocations: 120.7 kB / 410 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.287e-05/0.3164, allocations: 4 kB / 410 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.587e-05/0.3165, allocations: 11.98 kB / 410 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.356e-05/0.3165, allocations: 7.938 kB / 410 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/0.3166, allocations: 7.984 kB / 410 MB, free: 15.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002291/0.3168, allocations: 245.9 kB / 410.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3168, allocations: 4 kB / 410.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002942/0.3171, allocations: 32 kB / 410.3 MB, free: 15.45 MB / 334.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.001064/0.3182, allocations: 418 kB / 410.7 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002645/0.3185, allocations: 87.83 kB / 410.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3185, allocations: 0 / 410.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.961e-05/0.3186, allocations: 36.23 kB / 410.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004433/0.319, allocations: 66.23 kB / 410.9 MB, free: 15.01 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006875/0.3197, allocations: 423.4 kB / 411.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.32, allocations: 0.744 MB / 412.1 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.9e-05/0.3201, allocations: 23.42 kB / 412.1 MB, free: 13.76 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3201, allocations: 0 / 412.1 MB, free: 13.76 MB / 334.1 MB Notification: Performance of Templates: time 0.005353/0.3255, allocations: 3.013 MB / 415.1 MB, free: 10.75 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches