Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001311/0.001311, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001314/0.001314, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 71.88 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2889, allocations: 50.55 MB / 408.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003388/0.2923, allocations: 1.91 MB / 410.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002138/0.2945, allocations: 1.305 MB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.2946, allocations: 0 / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003048/0.2949, allocations: 67.67 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003388/0.2953, allocations: 135.4 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006296/0.2959, allocations: 226.8 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002508/0.2962, allocations: 187.5 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.2963, allocations: 29.55 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.2964, allocations: 79.62 kB / 412.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001266/0.2966, allocations: 87.62 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.523e-05/0.2966, allocations: 8 kB / 412.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001642/0.2968, allocations: 75.88 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.576e-05/0.2969, allocations: 47.84 kB / 413 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.811e-05/0.297, allocations: 83.41 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003678/0.2973, allocations: 246 kB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.2973, allocations: 4 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2974, allocations: 3.938 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.2974, allocations: 0 / 413.3 MB, free: 12.99 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.0007721/0.2981, allocations: 0.5542 MB / 413.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.2982, allocations: 11.97 kB / 413.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.745e-05/0.2982, allocations: 38.75 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.075e-05/0.2983, allocations: 24.75 kB / 413.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004165/0.2987, allocations: 307.7 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.2988, allocations: 4.375 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.783e-05/0.2988, allocations: 11.94 kB / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003572/0.2991, allocations: 172.4 kB / 414.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.2992, allocations: 4 kB / 414.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.2992, allocations: 3.984 kB / 414.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.2992, allocations: 0 / 414.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001199/0.2993, allocations: 43.92 kB / 414.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000565/0.2999, allocations: 474.5 kB / 414.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002833/0.3002, allocations: 146.5 kB / 415.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.3003, allocations: 55.42 kB / 415.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/0.3003, allocations: 16 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002022/0.3006, allocations: 93.05 kB / 415.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.263e-06/0.3006, allocations: 0 / 415.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004072/0.301, allocations: 173.8 kB / 415.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.3011, allocations: 191.9 kB / 415.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003676/0.3015, allocations: 342.9 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.3015, allocations: 25.7 kB / 415.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.3016, allocations: 136.3 kB / 416.1 MB, free: 9.871 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.739e-05/0.3017, allocations: 19.89 kB / 416.1 MB, free: 9.852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.83e-05/0.3017, allocations: 33.7 kB / 416.1 MB, free: 9.812 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.3019, allocations: 338.8 kB / 416.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.738e-05/0.302, allocations: 27.98 kB / 416.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.3021, allocations: 91.72 kB / 416.6 MB, free: 9.328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001756/0.3023, allocations: 101.1 kB / 416.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3023, allocations: 0 / 416.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002581/0.3026, allocations: 133.4 kB / 416.8 MB, free: 9.074 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.851e-05/0.3026, allocations: 12.16 kB / 416.8 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.3026, allocations: 3.938 kB / 416.8 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.3026, allocations: 4 kB / 416.8 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.3027, allocations: 23.92 kB / 416.8 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.3028, allocations: 4 kB / 416.9 MB, free: 9.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.01e-05/0.3029, allocations: 19.81 kB / 416.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.259e-05/0.3029, allocations: 8 kB / 416.9 MB, free: 9 MB / 334.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.0001487/0.303, allocations: 153.8 kB / 417 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.3031, allocations: 77.55 kB / 417.1 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.169e-05/0.3032, allocations: 29.73 kB / 417.1 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3032, allocations: 0 / 417.1 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3032, allocations: 7.938 kB / 417.1 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.3032, allocations: 3.938 kB / 417.1 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002542/0.3035, allocations: 245.6 kB / 417.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3035, allocations: 320 / 417.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.506e-05/0.3036, allocations: 19.92 kB / 417.4 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.389e-06/0.3036, allocations: 4 kB / 417.4 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.3036, allocations: 4 kB / 417.4 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3036, allocations: 4.062 kB / 417.4 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3036, allocations: 4 kB / 417.4 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003083/0.3039, allocations: 187.3 kB / 417.6 MB, free: 8.184 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.3041, allocations: 120.9 kB / 417.7 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.349e-05/0.3041, allocations: 8 kB / 417.7 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.176e-05/0.3042, allocations: 11.98 kB / 417.7 MB, free: 8.027 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.413e-05/0.3043, allocations: 7.938 kB / 417.8 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.001e-05/0.3043, allocations: 7.984 kB / 417.8 MB, free: 8.012 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002771/0.3046, allocations: 249.9 kB / 418 MB, free: 7.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3046, allocations: 0 / 418 MB, free: 7.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002657/0.3048, allocations: 32 kB / 418 MB, free: 7.738 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.00197/0.3068, allocations: 1.032 MB / 419.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002411/0.3071, allocations: 80.09 kB / 419.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3071, allocations: 0 / 419.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001066/0.3072, allocations: 39.92 kB / 419.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004308/0.3076, allocations: 87 kB / 419.3 MB, free: 6.602 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00279/0.3104, allocations: 2.289 MB / 421.6 MB, free: 4.176 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003876/0.3108, allocations: 0.7476 MB / 422.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.641e-05/0.311, allocations: 29.53 kB / 422.3 MB, free: 3.375 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.3111, allocations: 71.34 kB / 422.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3111, allocations: 0 / 422.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02786/0.339, allocations: 5.474 MB / 427.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.217/8.556, allocations: 12.05 kB / 427.9 MB, free: 13.95 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches