Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001483/0.001483, allocations: 200.4 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 226.6 MB / 244.7 MB, free: 8.164 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008521/0.0008523, allocations: 99.98 kB / 296.8 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002926/0.0002928, allocations: 4 kB / 356.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2972, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.002403/0.2997, allocations: 1.614 MB / 409.7 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001704/0.3014, allocations: 1.131 MB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.3016, allocations: 3.938 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006441/0.3022, allocations: 144 kB / 410.9 MB, free: 24.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003327/0.3026, allocations: 127 kB / 411.1 MB, free: 24.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000492/0.3031, allocations: 179.5 kB / 411.2 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002345/0.3033, allocations: 183.4 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.3035, allocations: 35.81 kB / 411.4 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001561/0.3037, allocations: 63.64 kB / 411.5 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001387/0.3038, allocations: 67.69 kB / 411.6 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.003e-05/0.3038, allocations: 5.188 kB / 411.6 MB, free: 24.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001379/0.304, allocations: 47.91 kB / 411.6 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.768e-05/0.3041, allocations: 35.84 kB / 411.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.878e-05/0.3042, allocations: 89.25 kB / 411.7 MB, free: 24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002333/0.3044, allocations: 172.2 kB / 411.9 MB, free: 23.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.3044, allocations: 0 / 411.9 MB, free: 23.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.277e-06/0.3044, allocations: 4 kB / 411.9 MB, free: 23.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.263e-06/0.3044, allocations: 0 / 411.9 MB, free: 23.83 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.0008305/0.3053, allocations: 0.4885 MB / 412.4 MB, free: 23.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.3053, allocations: 12.03 kB / 412.4 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.33e-05/0.3054, allocations: 20.66 kB / 412.4 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003945/0.3058, allocations: 276.4 kB / 412.7 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.843e-05/0.3059, allocations: 12.38 kB / 412.7 MB, free: 22.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.092e-05/0.3059, allocations: 8.125 kB / 412.7 MB, free: 22.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003874/0.3063, allocations: 164.4 kB / 412.9 MB, free: 22.74 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.3063, allocations: 4 kB / 412.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.3063, allocations: 0 / 412.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.3063, allocations: 3.938 kB / 412.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001176/0.3065, allocations: 43.91 kB / 412.9 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005292/0.307, allocations: 387.1 kB / 413.3 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.3072, allocations: 130.5 kB / 413.4 MB, free: 22.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.52e-05/0.3073, allocations: 55.42 kB / 413.5 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.01e-05/0.3074, allocations: 4 kB / 413.5 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001683/0.3075, allocations: 75.31 kB / 413.6 MB, free: 21.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.563e-06/0.3076, allocations: 0 / 413.6 MB, free: 21.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003943/0.308, allocations: 161.3 kB / 413.7 MB, free: 21.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.111e-05/0.308, allocations: 162.6 kB / 413.9 MB, free: 21.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000251/0.3083, allocations: 282.5 kB / 414.2 MB, free: 21.29 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.3083, allocations: 29.7 kB / 414.2 MB, free: 21.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.401e-05/0.3084, allocations: 116.4 kB / 414.3 MB, free: 21.13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/0.3084, allocations: 19.8 kB / 414.3 MB, free: 21.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.259e-06/0.3084, allocations: 0 / 414.3 MB, free: 21.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.988e-05/0.3085, allocations: 334.8 kB / 414.7 MB, free: 20.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.725e-05/0.3086, allocations: 27.92 kB / 414.7 MB, free: 20.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.04e-05/0.3087, allocations: 87.64 kB / 414.8 MB, free: 20.63 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001229/0.3088, allocations: 89.98 kB / 414.9 MB, free: 20.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3088, allocations: 0 / 414.9 MB, free: 20.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001923/0.309, allocations: 133.3 kB / 415 MB, free: 20.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.3091, allocations: 12.19 kB / 415 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3091, allocations: 0 / 415 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.3091, allocations: 4 kB / 415 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.564e-05/0.3092, allocations: 12 kB / 415 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.988e-06/0.3092, allocations: 3.938 kB / 415 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.576e-05/0.3093, allocations: 23.77 kB / 415 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.3093, allocations: 4 kB / 415 MB, free: 20.33 MB / 298.7 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001208/0.3094, allocations: 146.1 kB / 415.2 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.072e-05/0.3095, allocations: 81.44 kB / 415.3 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.674e-05/0.3096, allocations: 21.7 kB / 415.3 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.3096, allocations: 0 / 415.3 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.3096, allocations: 4 kB / 415.3 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3096, allocations: 3.938 kB / 415.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.3099, allocations: 237.5 kB / 415.5 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3099, allocations: 3.938 kB / 415.5 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.652e-05/0.3099, allocations: 7.938 kB / 415.5 MB, free: 19.76 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.3099, allocations: 4 kB / 415.5 MB, free: 19.76 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.3099, allocations: 8.094 kB / 415.6 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.3099, allocations: 7.984 kB / 415.6 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.3099, allocations: 3.984 kB / 415.6 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002279/0.3102, allocations: 164.9 kB / 415.7 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.95e-05/0.3103, allocations: 116.8 kB / 415.8 MB, free: 19.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.075e-05/0.3103, allocations: 8 kB / 415.8 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.544e-05/0.3104, allocations: 7.984 kB / 415.9 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.838e-05/0.3104, allocations: 4 kB / 415.9 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.3105, allocations: 7.938 kB / 415.9 MB, free: 19.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001647/0.3106, allocations: 209.9 kB / 416.1 MB, free: 19.19 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3106, allocations: 0 / 416.1 MB, free: 19.19 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002671/0.3109, allocations: 39.94 kB / 416.1 MB, free: 19.15 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,sample1.u,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001004/0.3119, allocations: 428.8 kB / 416.5 MB, free: 18.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002152/0.3121, allocations: 71.86 kB / 416.6 MB, free: 18.8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3122, allocations: 0 / 416.6 MB, free: 18.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.72e-05/0.3122, allocations: 27.98 kB / 416.6 MB, free: 18.78 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004607/0.3127, allocations: 71.5 kB / 416.7 MB, free: 18.71 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006092/0.3133, allocations: 406.7 kB / 417.1 MB, free: 18.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001825/0.3135, allocations: 0.7362 MB / 417.8 MB, free: 17.51 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.626e-05/0.3136, allocations: 27.44 kB / 417.9 MB, free: 17.49 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3136, allocations: 0 / 417.9 MB, free: 17.49 MB / 298.7 MB Notification: Performance of Templates: time 0.00421/0.3178, allocations: 2.81 MB / 420.7 MB, free: 14.7 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches