Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001295/0.001295, allocations: 122.8 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.001428/0.001428, allocations: 202 kB / 18.73 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.478/1.478, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 59.89 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.287, allocations: 50.55 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003803/0.2909, allocations: 1.925 MB / 410.7 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002286/0.2932, allocations: 1.313 MB / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.2933, allocations: 7.938 kB / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003069/0.2936, allocations: 67.66 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003679/0.294, allocations: 131.4 kB / 412.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007052/0.2947, allocations: 235.2 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002912/0.295, allocations: 191.5 kB / 412.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.2952, allocations: 29.67 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001198/0.2953, allocations: 79.62 kB / 412.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001429/0.2955, allocations: 87.61 kB / 412.9 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.702e-05/0.2955, allocations: 8 kB / 412.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000172/0.2957, allocations: 75.95 kB / 413 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.216e-05/0.2958, allocations: 51.77 kB / 413 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.2959, allocations: 87.36 kB / 413.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003887/0.2963, allocations: 249.9 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2963, allocations: 0 / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2963, allocations: 0 / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.387e-06/0.2963, allocations: 4 kB / 413.3 MB, free: 12.98 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.0007968/0.2972, allocations: 0.5581 MB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.2972, allocations: 8.031 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.97e-05/0.2973, allocations: 42.75 kB / 413.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.894e-05/0.2973, allocations: 28.73 kB / 414 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004498/0.2978, allocations: 299.7 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.024e-05/0.2978, allocations: 12.36 kB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.856e-05/0.2978, allocations: 11.94 kB / 414.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003821/0.2982, allocations: 176.4 kB / 414.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.2982, allocations: 0 / 414.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.2983, allocations: 7.984 kB / 414.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.2983, allocations: 0 / 414.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.2984, allocations: 39.92 kB / 414.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005608/0.299, allocations: 407.2 kB / 414.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003061/0.2993, allocations: 150.4 kB / 415.1 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001097/0.2994, allocations: 55.42 kB / 415.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.367e-05/0.2994, allocations: 0 / 415.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001892/0.2996, allocations: 87.31 kB / 415.2 MB, free: 10.87 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.2997, allocations: 0 / 415.2 MB, free: 10.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004222/0.3001, allocations: 169.4 kB / 415.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001382/0.3002, allocations: 192.2 kB / 415.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003797/0.3006, allocations: 350.9 kB / 415.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.3007, allocations: 29.7 kB / 415.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.3008, allocations: 128.4 kB / 416 MB, free: 9.941 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.839e-05/0.3008, allocations: 19.89 kB / 416.1 MB, free: 9.922 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.027e-05/0.3009, allocations: 37.66 kB / 416.1 MB, free: 9.879 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002004/0.3011, allocations: 330.8 kB / 416.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.992e-05/0.3012, allocations: 24 kB / 416.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.3013, allocations: 116.4 kB / 416.6 MB, free: 9.379 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001906/0.3015, allocations: 97.92 kB / 416.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3015, allocations: 4 kB / 416.7 MB, free: 9.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002617/0.3018, allocations: 133.4 kB / 416.8 MB, free: 9.121 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.3018, allocations: 8.188 kB / 416.8 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.3019, allocations: 4 kB / 416.8 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.3019, allocations: 7.938 kB / 416.8 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.302, allocations: 19.98 kB / 416.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.302, allocations: 4.312 kB / 416.8 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.603e-05/0.3021, allocations: 23.8 kB / 416.9 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.3021, allocations: 8 kB / 416.9 MB, free: 9.047 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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,backSample1.y,backSample1.u,shiftSample1.y,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.0001691/0.3023, allocations: 153.8 kB / 417 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.3025, allocations: 89.44 kB / 417.1 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.903e-05/0.3025, allocations: 29.73 kB / 417.1 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3025, allocations: 0 / 417.1 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.3025, allocations: 4 kB / 417.1 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.3026, allocations: 3.938 kB / 417.1 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002501/0.3028, allocations: 245.6 kB / 417.4 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3028, allocations: 0 / 417.4 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.576e-05/0.3029, allocations: 15.98 kB / 417.4 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3029, allocations: 0 / 417.4 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.3029, allocations: 8 kB / 417.4 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.3029, allocations: 4.094 kB / 417.4 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/0.3029, allocations: 7.938 kB / 417.4 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000354/0.3033, allocations: 179.4 kB / 417.6 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.3034, allocations: 120.8 kB / 417.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.3035, allocations: 8 kB / 417.7 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.396e-05/0.3036, allocations: 11.98 kB / 417.7 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.409e-05/0.3036, allocations: 11.94 kB / 417.7 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.3037, allocations: 7.984 kB / 417.7 MB, free: 8.055 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000272/0.3039, allocations: 249.9 kB / 418 MB, free: 7.809 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.304, allocations: 0 / 418 MB, free: 7.809 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002762/0.3042, allocations: 39.92 kB / 418 MB, free: 7.77 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,backSample1.y,shiftSample1.y,backSample1.u,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.002008/0.3063, allocations: 1.028 MB / 419.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002392/0.3065, allocations: 88.16 kB / 419.1 MB, free: 6.758 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3065, allocations: 0 / 419.1 MB, free: 6.758 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.86e-05/0.3066, allocations: 31.98 kB / 419.2 MB, free: 6.727 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004535/0.3071, allocations: 94.03 kB / 419.3 MB, free: 6.637 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002886/0.31, allocations: 2.329 MB / 421.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004246/0.3104, allocations: 0.7476 MB / 422.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.951e-05/0.3105, allocations: 29.53 kB / 422.4 MB, free: 3.363 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.3106, allocations: 63.41 kB / 422.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3106, allocations: 0 / 422.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03009/0.3407, allocations: 5.658 MB / 428.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.102/8.443, allocations: 6.906 kB / 428.1 MB, free: 13.79 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches