Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.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.RealSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 109.1 kB / 17.06 MB, free: 6.023 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.001798/0.001798, allocations: 191 kB / 18 MB, free: 5.105 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.416/1.416, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 48.06 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3183, allocations: 49.43 MB / 400.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.003005/0.3214, allocations: 1.614 MB / 402.3 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009366/0.3223, allocations: 0.4947 MB / 402.8 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.134e-05/0.3224, allocations: 4 kB / 402.8 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.774e-05/0.3225, allocations: 7.922 kB / 402.8 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.3227, allocations: 11.88 kB / 402.9 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002797/0.3229, allocations: 59.83 kB / 402.9 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001111/0.3231, allocations: 55.77 kB / 403 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.3232, allocations: 23.92 kB / 403 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.515e-05/0.3233, allocations: 31.8 kB / 403 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.182e-05/0.3233, allocations: 19.86 kB / 403 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.19e-05/0.3234, allocations: 8 kB / 403 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.398e-05/0.3234, allocations: 4 kB / 403.1 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.778e-05/0.3234, allocations: 15.92 kB / 403.1 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.835e-05/0.3235, allocations: 31.8 kB / 403.1 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.3236, allocations: 63.73 kB / 403.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.3236, allocations: 0 / 403.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3236, allocations: 0 / 403.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.3236, allocations: 0 / 403.2 MB, free: 6.449 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005258/0.3242, allocations: 380.3 kB / 403.5 MB, free: 6.035 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.3242, allocations: 12.03 kB / 403.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.139e-05/0.3243, allocations: 16.75 kB / 403.6 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002728/0.3246, allocations: 201.9 kB / 403.8 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.3246, allocations: 8.375 kB / 403.8 MB, free: 5.766 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.569e-05/0.3246, allocations: 4.125 kB / 403.8 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003097/0.3249, allocations: 130.7 kB / 403.9 MB, free: 5.609 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.3249, allocations: 7.922 kB / 403.9 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.325, allocations: 8 kB / 403.9 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.325, allocations: 0 / 403.9 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.084e-05/0.3251, allocations: 23.98 kB / 403.9 MB, free: 5.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004371/0.3255, allocations: 299.3 kB / 404.2 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001397/0.3257, allocations: 94.42 kB / 404.3 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.654e-05/0.3257, allocations: 43.48 kB / 404.4 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.3258, allocations: 7.938 kB / 404.4 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.3258, allocations: 34.56 kB / 404.4 MB, free: 4.984 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.183e-06/0.3258, allocations: 4 kB / 404.4 MB, free: 4.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.000307/0.3261, allocations: 101.4 kB / 404.5 MB, free: 4.875 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.897e-05/0.3262, allocations: 132.5 kB / 404.6 MB, free: 4.715 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.3264, allocations: 148.1 kB / 404.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.3264, allocations: 26.2 kB / 404.8 MB, free: 4.531 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.792e-05/0.3265, allocations: 92.08 kB / 404.9 MB, free: 4.438 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.068e-05/0.3265, allocations: 11.91 kB / 404.9 MB, free: 4.426 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.575e-05/0.3265, allocations: 21.7 kB / 404.9 MB, free: 4.398 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3267, allocations: 318.8 kB / 405.2 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.64e-05/0.3267, allocations: 11.92 kB / 405.3 MB, free: 4.066 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.284e-05/0.3268, allocations: 48.22 kB / 405.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001093/0.3269, allocations: 60.22 kB / 405.4 MB, free: 3.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3269, allocations: 0 / 405.4 MB, free: 3.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001644/0.3271, allocations: 85.52 kB / 405.4 MB, free: 3.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.3271, allocations: 7.938 kB / 405.5 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.3271, allocations: 4 kB / 405.5 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.3272, allocations: 0 / 405.5 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.621e-05/0.3273, allocations: 23.92 kB / 405.5 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3273, allocations: 0 / 405.5 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.863e-05/0.3273, allocations: 7.938 kB / 405.5 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.3273, allocations: 4 kB / 405.5 MB, free: 3.793 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (6): * Single equations (assignments): 6 * 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.000124/0.3275, allocations: 122 kB / 405.6 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.375e-05/0.3276, allocations: 53.55 kB / 405.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.347e-05/0.3276, allocations: 19.86 kB / 405.7 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.3276, allocations: 4 kB / 405.7 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3276, allocations: 0 / 405.7 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.3276, allocations: 3.938 kB / 405.7 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001979/0.3278, allocations: 177.5 kB / 405.9 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.3279, allocations: 4 kB / 405.9 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.061e-05/0.3279, allocations: 8.125 kB / 405.9 MB, free: 3.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.3279, allocations: 12.06 kB / 405.9 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.3279, allocations: 3.984 kB / 405.9 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.328, allocations: 0 / 405.9 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.328, allocations: 7.938 kB / 405.9 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002162/0.3282, allocations: 198 kB / 406.1 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.501e-05/0.3283, allocations: 96.94 kB / 406.2 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.3283, allocations: 0 / 406.2 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.166e-05/0.3284, allocations: 4 kB / 406.2 MB, free: 2.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.758e-05/0.3284, allocations: 11.92 kB / 406.2 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-06/0.3284, allocations: 0 / 406.2 MB, free: 2.969 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.014e-05/0.3285, allocations: 114.3 kB / 406.3 MB, free: 2.859 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3285, allocations: 0 / 406.3 MB, free: 2.859 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002372/0.3287, allocations: 8 kB / 406.3 MB, free: 2.852 MB / 318.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0001258/0.3289, allocations: 111.9 kB / 406.4 MB, free: 2.734 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001522/0.329, allocations: 39.92 kB / 406.5 MB, free: 2.695 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.329, allocations: 0 / 406.5 MB, free: 2.695 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.233e-05/0.3291, allocations: 15.98 kB / 406.5 MB, free: 2.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003738/0.3295, allocations: 40.42 kB / 406.5 MB, free: 2.641 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003921/0.3299, allocations: 190.1 kB / 406.7 MB, free: 2.418 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002795/0.3302, allocations: 0.7 MB / 407.4 MB, free: 1.691 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.482e-05/0.3302, allocations: 7.938 kB / 407.4 MB, free: 1.684 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.86e-05/0.3302, allocations: 11.44 kB / 407.4 MB, free: 1.672 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3302, allocations: 7.938 kB / 407.4 MB, free: 1.664 MB / 318.1 MB Notification: Performance of Templates: time 0.003151/0.3334, allocations: 0.7162 MB / 408.2 MB, free: 0.9531 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches