Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00244/0.002439, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.55/1.55, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 108.5 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009736/0.0009737, allocations: 35.94 kB / 350 MB, free: 84 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3077, allocations: 49.45 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.003382/0.3112, allocations: 1.951 MB / 401.4 MB, free: 31.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001622/0.3128, allocations: 1.042 MB / 402.5 MB, free: 30.37 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.313, allocations: 0 / 402.5 MB, free: 30.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006577/0.3137, allocations: 155.6 kB / 402.6 MB, free: 30.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002753/0.314, allocations: 95.7 kB / 402.7 MB, free: 30.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006119/0.3146, allocations: 183.9 kB / 402.9 MB, free: 29.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002311/0.3149, allocations: 191.4 kB / 403.1 MB, free: 29.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001837/0.3151, allocations: 29.55 kB / 403.1 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.3152, allocations: 75.62 kB / 403.2 MB, free: 29.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001314/0.3153, allocations: 63.7 kB / 403.2 MB, free: 29.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.743e-05/0.3154, allocations: 4 kB / 403.3 MB, free: 29.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001562/0.3155, allocations: 51.91 kB / 403.3 MB, free: 29.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.628e-05/0.3156, allocations: 39.84 kB / 403.3 MB, free: 29.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.048e-05/0.3157, allocations: 71.47 kB / 403.4 MB, free: 29.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002756/0.316, allocations: 200.9 kB / 403.6 MB, free: 29.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.316, allocations: 0 / 403.6 MB, free: 29.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.316, allocations: 3.938 kB / 403.6 MB, free: 29.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.316, allocations: 4 kB / 403.6 MB, free: 29.23 MB / 298.7 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.0009839/0.317, allocations: 0.5118 MB / 404.1 MB, free: 28.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/0.3171, allocations: 8.031 kB / 404.1 MB, free: 28.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.858e-05/0.3172, allocations: 24.67 kB / 404.2 MB, free: 28.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003724/0.3176, allocations: 262.8 kB / 404.4 MB, free: 28.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/0.3176, allocations: 12.31 kB / 404.4 MB, free: 28.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.226e-05/0.3176, allocations: 12.12 kB / 404.4 MB, free: 28.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003958/0.318, allocations: 164.7 kB / 404.6 MB, free: 28.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.318, allocations: 0 / 404.6 MB, free: 28.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.3181, allocations: 4 kB / 404.6 MB, free: 28.12 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.3181, allocations: 0 / 404.6 MB, free: 28.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001017/0.3182, allocations: 39.92 kB / 404.6 MB, free: 28.08 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005007/0.3187, allocations: 446.6 kB / 405.1 MB, free: 27.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002299/0.3189, allocations: 130.5 kB / 405.2 MB, free: 27.42 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.698e-05/0.319, allocations: 59.41 kB / 405.3 MB, free: 27.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-05/0.3191, allocations: 8 kB / 405.3 MB, free: 27.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001559/0.3192, allocations: 97.09 kB / 405.4 MB, free: 27.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.223e-06/0.3192, allocations: 0 / 405.4 MB, free: 27.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003253/0.3196, allocations: 157.6 kB / 405.5 MB, free: 27.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.176e-05/0.3196, allocations: 166.2 kB / 405.7 MB, free: 26.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002091/0.3199, allocations: 265 kB / 405.9 MB, free: 26.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.3199, allocations: 25.7 kB / 406 MB, free: 26.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.62e-05/0.32, allocations: 124.2 kB / 406.1 MB, free: 26.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.381e-05/0.32, allocations: 19.8 kB / 406.1 MB, free: 26.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.531e-05/0.32, allocations: 33.7 kB / 406.1 MB, free: 26.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.467e-05/0.3201, allocations: 334.8 kB / 406.5 MB, free: 26.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.863e-05/0.3202, allocations: 24.23 kB / 406.5 MB, free: 26.03 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.809e-05/0.3203, allocations: 82.73 kB / 406.6 MB, free: 25.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001222/0.3204, allocations: 93.11 kB / 406.7 MB, free: 25.81 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3204, allocations: 4 kB / 406.7 MB, free: 25.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001858/0.3206, allocations: 125.3 kB / 406.8 MB, free: 25.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.3206, allocations: 4.156 kB / 406.8 MB, free: 25.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.3206, allocations: 4 kB / 406.8 MB, free: 25.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.3207, allocations: 4 kB / 406.8 MB, free: 25.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.391e-05/0.3208, allocations: 23.92 kB / 406.8 MB, free: 25.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.3208, allocations: 0 / 406.8 MB, free: 25.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.805e-05/0.3208, allocations: 11.84 kB / 406.8 MB, free: 25.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.225e-06/0.3209, allocations: 4 kB / 406.8 MB, free: 25.63 MB / 298.7 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.0001314/0.321, allocations: 153.7 kB / 407 MB, free: 25.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.294e-05/0.3211, allocations: 69.44 kB / 407.1 MB, free: 25.39 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.066e-05/0.3212, allocations: 25.7 kB / 407.1 MB, free: 25.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3212, allocations: 4 kB / 407.1 MB, free: 25.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.3212, allocations: 0 / 407.1 MB, free: 25.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3212, allocations: 3.938 kB / 407.1 MB, free: 25.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.3214, allocations: 225.6 kB / 407.3 MB, free: 25.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3214, allocations: 0 / 407.3 MB, free: 25.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.73e-05/0.3214, allocations: 11.94 kB / 407.3 MB, free: 25.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3214, allocations: 0 / 407.3 MB, free: 25.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.3215, allocations: 8 kB / 407.3 MB, free: 25.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3215, allocations: 4.047 kB / 407.3 MB, free: 25.06 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3215, allocations: 8.062 kB / 407.3 MB, free: 25.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005178/0.322, allocations: 0.7783 MB / 408.1 MB, free: 24.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9e-05/0.3221, allocations: 108.9 kB / 408.2 MB, free: 24.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.106e-05/0.3222, allocations: 11.92 kB / 408.2 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.599e-05/0.3222, allocations: 0 / 408.2 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.537e-05/0.3223, allocations: 8 kB / 408.2 MB, free: 24.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.3223, allocations: 11.98 kB / 408.3 MB, free: 24.05 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001526/0.3224, allocations: 188.5 kB / 408.4 MB, free: 23.87 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3225, allocations: 0 / 408.4 MB, free: 23.87 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003772/0.3228, allocations: 31.98 kB / 408.5 MB, free: 23.84 MB / 298.7 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.001118/0.324, allocations: 442 kB / 408.9 MB, free: 23.56 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002102/0.3242, allocations: 71.91 kB / 409 MB, free: 23.49 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.3242, allocations: 0 / 409 MB, free: 23.49 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.484e-05/0.3243, allocations: 31.92 kB / 409 MB, free: 23.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004269/0.3247, allocations: 72.81 kB / 409.1 MB, free: 23.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006355/0.3254, allocations: 0.4981 MB / 409.6 MB, free: 22.84 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.3256, allocations: 0.7322 MB / 410.3 MB, free: 22.09 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.376e-05/0.3257, allocations: 29.52 kB / 410.3 MB, free: 22.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.041e-05/0.3258, allocations: 19.44 kB / 410.4 MB, free: 22.04 MB / 298.7 MB Notification: Performance of SimCode: time 1.683e-06/0.3258, allocations: 0 / 410.4 MB, free: 22.04 MB / 298.7 MB Notification: Performance of Templates: time 0.005545/0.3313, allocations: 2.475 MB / 412.8 MB, free: 19.59 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches